如何更改 Kibana ECK 运营商 APM 服务器中的 queue.mem.events?

问题描述

我在 kibana APM 服务器中遇到了这个 503 队列已满错误

{"request_id": "1854b2e8-2930-4895-ac96-a213e1253215","method": "POST","URL": "/intake/v2/events","content_length": -1,"remote_address": "10.36.0.128","user-agent": "elasticapm-node/3.6.1 elastic-apm-http-client/9.4.0 node/10.17.0","response_code": 503,"error": "queue is full"}

查看他们建议除了水平或垂直扩展服务器之外更改 queue.mem.eventsoutput.elasticsearch.bulk_max_size 的文档。问题是我还没有找到在 ECK ApmServer 操作符 yaml 中调整这个变量的方法

试过这个:

---
apiVersion: apm.k8s.elastic.co/v1
kind: ApmServer
Metadata:
  name: apm-server
  namespace: apm
spec:
  version: 7.5.1
  count: 12
  elasticsearchRef:
    name: "elasticsearch"
  config:
    queue.mem.events: 8198 
    output.elasticsearch.bulk_max_size: 8198
    apm-server:
      rum.enabled: true
      ilm.enabled: true
      rum.event_rate.limit: 1000
      rum.event_rate.lru_size: 1000
      rum.allow_origins: ['']
      rum.library_pattern: "node_modules|bower_components|~"
      rum.exclude_from_grouping: "^/webpack"
      rum.source_mapping.enabled: true
      rum.source_mapping.cache.expiration: 5m
      rum.source_mapping.index_pattern: "apm--sourcemaP*"
  http:
    service:
      spec:
        type: LoadBalancer
    tls:
      selfSignedCertificate:
        disabled: true

此外,向 ElasticSearch 集群添加了一些节点,但该变量似乎仍未正确设置,因为几分钟后 APM 队列再次变满并且错误再次出现。

那么,如何在 ApmServer Kiubernetetes CRD 中更改这些变量?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)