我有一个带有Jhipster版本5v的微服务,以及在无业游民的centos 7v中运行的ElasticSearch映像2.4.1。这两个映像正在运行,但是保存和搜索操作无法到达Elasticsearch映像。
码头工人组成:
service-app: image: "..." depends_on: - service-mysql - service-elasticsearch - kafka - zookeeper - jhipster-registry environment: - SPRING_PROFILES_ACTIVE=dev,swagger - SPRING_CLOUD_CONFIG_URI=http://admin:admin@jhipster-registry:8761/config - SPRING_DATASOURCE_URL=jdbc:mysql://service-mysql:3306/service?useUnicode=true&characterEncoding=utf8&useSSL=false - SPRING_DATA_CASSANDRA_CONTACTPOINTS=cassandra - JHIPSTER_SLEEP=30 - JHIPSTER_LOGGING_LOGSTASH_HOST=jhipster-logstash - JHIPSTER_LOGGING_LOGSTASH_PORT=5000 - SPRING_DATA_ELASTICSEARCH_CLUSTER-NAME=SERVICE - SPRING_DATA_ELASTICSEARCH_CLUSTER_NODES=service-elasticsearch:9300 - SPRING_CLOUD_STREAM_KAFKA_BINDER_BROKERS=kafka - SPRING_CLOUD_STREAM_KAFKA_BINDER_ZK_NODES=zookeeper - EUREKA_CLIENT_SERVICEURL_DEFAULTZONE=http://admin:admin@jhipster-registry:8761/eureka ports: - 60088:8088 logging: driver: "json-file" options: max-size: "100m" max-file: "10" service-elasticsearch: image: ... volumes: - service-elasticsearch:/usr/share/elasticsearch/data/ environment: - network.host=0.0.0.0 - cluster.name=service - discovery.type=single-node - CLUSTER_NAME=SERVICE logging: driver: "json-file" options: max-size: "100m" max-file: "10"
application_dev.yml:
data: elasticsearch: properties: path: home: target/elasticsearch
application_prod:
data: jest: uri: http://localhost:9200
域:
问题是群集中的ES节点之一正在磁盘空间不足的情况下运行,因此您遇到了此异常。
请确保清理正在发生异常的ES节点上的磁盘空间。我已经遇到过2-3次此问题,并且 它不依赖于Elasticsearch索引大小 ,因此即使您在大磁盘上的索引可能很小(假设为2 TB),但是如果您没有更多的可用磁盘空间超过10%(将近200 GB,这是巨大的)仍然会发生此异常,并且需要清理磁盘空间。