How to change indexing_pressure.memory.limit configuration

My es version is 7.17.5, single node.
I notice that my fluent-bit return following error log:

{"log":"{\"error\":{\"root_cause\":[{\"type\":\"es_rejected_execution_exception\",\"reason\":\"rejected execution of coordinating operation [coordinating_and_primary_bytes=836343170, replica_bytes=0, all_bytes=836343170, coordinating_operation_bytes=6029, max_coordinating_and_primary_bytes=836344217]\"}],\"type\":\"es_rejected_execution_exception\",\"reason\":\"rejected execution of coordinating operation [coordinating_and_primary_bytes=836343170, replica_bytes=0, all_bytes=836343170, coordinating_operation_bytes=6029, max_coordinating_and_primary_bytes=836344217]\"},\"status\":<mark>429</mark>}

I check the document, I notice that is es JVM heap memory is not enough.
So I add a heap.options under /etc/elasticsearch/jvm.options.d

I'm just curious, how should I adjust indexing_pressure.memory.limit? Is it OK if I append

indexing_pressure.memory.limit: 15%

to /etc/elasticsearch/elasticsearch.yml ?
I can't find any example document under here and here

1 Like

What is the output of the cluster stats API?

I don't know why you asking me the cluster stats? Is it relevant to how to configure ES?

{
  "_nodes" : {
    "total" : 1,
    "successful" : 1,
    "failed" : 0
  },
  "cluster_name" : "elasticsearch",
  "cluster_uuid" : "Umnt5shNTm6-Zr_6gKh18A",
  "timestamp" : 1661130294549,
  "status" : "yellow",
  "indices" : {
    "count" : 37,
    "shards" : {
      "total" : 40,
      "primaries" : 40,
      "replication" : 0.0,
      "index" : {
        "shards" : {
          "min" : 1,
          "max" : 2,
          "avg" : 1.0810810810810811
        },
        "primaries" : {
          "min" : 1,
          "max" : 2,
          "avg" : 1.0810810810810811
        },
        "replication" : {
          "min" : 0.0,
          "max" : 0.0,
          "avg" : 0.0
        }
      }
    },
    "docs" : {
      "count" : 16211134,
      "deleted" : 231090
    },
    "store" : {
      "size_in_bytes" : 11450187153,
      "total_data_set_size_in_bytes" : 11450187153,
      "reserved_in_bytes" : 0
    },
    "fielddata" : {
      "memory_size_in_bytes" : 0,
      "evictions" : 0
    },
    "query_cache" : {
      "memory_size_in_bytes" : 157864,
      "total_count" : 12482522,
      "hit_count" : 408721,
      "miss_count" : 12073801,
      "cache_size" : 21,
      "cache_count" : 9705,
      "evictions" : 9684
    },
    "completion" : {
      "size_in_bytes" : 0
    },
    "segments" : {
      "count" : 335,
      "memory_in_bytes" : 5773734,
      "terms_memory_in_bytes" : 4737312,
      "stored_fields_memory_in_bytes" : 198504,
      "term_vectors_memory_in_bytes" : 0,
      "norms_memory_in_bytes" : 648000,
      "points_memory_in_bytes" : 0,
      "doc_values_memory_in_bytes" : 189918,
      "index_writer_memory_in_bytes" : 194963450,
      "version_map_memory_in_bytes" : 15588,
      "fixed_bit_set_memory_in_bytes" : 26488,
      "max_unsafe_auto_id_timestamp" : 1660894468032,
      "file_sizes" : { }
    },
    "mappings" : {
      "field_types" : [
        {
          "name" : "boolean",
          "count" : 2,
          "index_count" : 2,
          "script_count" : 0
        },
        {
          "name" : "byte",
          "count" : 10,
          "index_count" : 3,
          "script_count" : 0
        },
        {
          "name" : "constant_keyword",
          "count" : 6,
          "index_count" : 2,
          "script_count" : 0
        },
        {
          "name" : "date",
          "count" : 89,
          "index_count" : 24,
          "script_count" : 0
        },
        {
          "name" : "float",
          "count" : 4,
          "index_count" : 2,
          "script_count" : 0
        },
        {
          "name" : "integer",
          "count" : 3,
          "index_count" : 2,
          "script_count" : 0
        },
        {
          "name" : "ip",
          "count" : 2,
          "index_count" : 2,
          "script_count" : 0
        },
        {
          "name" : "keyword",
          "count" : 771,
          "index_count" : 27,
          "script_count" : 0
        },
        {
          "name" : "long",
          "count" : 40,
          "index_count" : 13,
          "script_count" : 0
        },
        {
          "name" : "nested",
          "count" : 2,
          "index_count" : 2,
          "script_count" : 0
        },
        {
          "name" : "object",
          "count" : 250,
          "index_count" : 18,
          "script_count" : 0
        },
        {
          "name" : "text",
          "count" : 643,
          "index_count" : 28,
          "script_count" : 0
        },
        {
          "name" : "version",
          "count" : 2,
          "index_count" : 2,
          "script_count" : 0
        }
      ],
      "runtime_field_types" : [ ]
    },
    "analysis" : {
      "char_filter_types" : [ ],
      "tokenizer_types" : [ ],
      "filter_types" : [ ],
      "analyzer_types" : [ ],
      "built_in_char_filters" : [ ],
      "built_in_tokenizers" : [ ],
      "built_in_filters" : [ ],
      "built_in_analyzers" : [ ]
    },
    "versions" : [
      {
        "version" : "7.17.5",
        "index_count" : 37,
        "primary_shard_count" : 40,
        "total_primary_bytes" : 11450187153
      }
    ]
  },
  "nodes" : {
    "count" : {
      "total" : 1,
      "coordinating_only" : 0,
      "data" : 1,
      "data_cold" : 1,
      "data_content" : 1,
      "data_frozen" : 1,
      "data_hot" : 1,
      "data_warm" : 1,
      "ingest" : 1,
      "master" : 1,
      "ml" : 1,
      "remote_cluster_client" : 1,
      "transform" : 1,
      "voting_only" : 0
    },
    "versions" : [
      "7.17.5"
    ],
    "os" : {
      "available_processors" : 8,
      "allocated_processors" : 8,
      "names" : [
        {
          "name" : "Linux",
          "count" : 1
        }
      ],
      "pretty_names" : [
        {
          "pretty_name" : "Ubuntu 20.04.1 LTS",
          "count" : 1
        }
      ],
      "architectures" : [
        {
          "arch" : "amd64",
          "count" : 1
        }
      ],
      "mem" : {
        "total_in_bytes" : 16726659072,
        "free_in_bytes" : 981741568,
        "used_in_bytes" : 15744917504,
        "free_percent" : 6,
        "used_percent" : 94
      }
    },
    "process" : {
      "cpu" : {
        "percent" : 76
      },
      "open_file_descriptors" : {
        "min" : 1333,
        "max" : 1333,
        "avg" : 1333
      }
    },
    "jvm" : {
      "max_uptime_in_millis" : 235843619,
      "versions" : [
        {
          "version" : "18.0.1.1",
          "vm_name" : "OpenJDK 64-Bit Server VM",
          "vm_version" : "18.0.1.1+2-6",
          "vm_vendor" : "Oracle Corporation",
          "bundled_jdk" : true,
          "using_bundled_jdk" : true,
          "count" : 1
        }
      ],
      "mem" : {
        "heap_used_in_bytes" : 7349573120,
        "heap_max_in_bytes" : 10737418240
      },
      "threads" : 118
    },
    "fs" : {
      "total_in_bytes" : 615550517248,
      "free_in_bytes" : 592440262656,
      "available_in_bytes" : 566494212096
    },
    "plugins" : [ ],
    "network_types" : {
      "transport_types" : {
        "security4" : 1
      },
      "http_types" : {
        "security4" : 1
      }
    },
    "discovery_types" : {
      "zen" : 1
    },
    "packaging_types" : [
      {
        "flavor" : "default",
        "type" : "deb",
        "count" : 1
      }
    ],
    "ingest" : {
      "number_of_pipelines" : 1,
      "processor_stats" : {
        "gsub" : {
          "count" : 0,
          "failed" : 0,
          "current" : 0,
          "time_in_millis" : 0
        },
        "script" : {
          "count" : 0,
          "failed" : 0,
          "current" : 0,
          "time_in_millis" : 0
        }
      }
    }
  }
}

Anybody konws?

Does anyone know about it? :confounded:
I just want to know how to set es indexing_pressure.memory.limit configuration

Docs

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.