elastic / integrations

Elastic Integrations
https://www.elastic.co/integrations
Other
194 stars 422 forks source link

Fleet server integration should create indices with auto_expand_replicas #8671

Open rhr323 opened 9 months ago

rhr323 commented 9 months ago

Currently fleet server creates indices with a replica that may cause issues on single node clusters.

Example:

.ds-metrics-fleet_server.agent_status-default-2023.12.05-000001 0 p STARTED      1   8.9kb   8.9kb 10.117.225.40 test-kill-kb-pod-d7x5-es-masterdata-0
.ds-metrics-fleet_server.agent_status-default-2023.12.05-000001 0 r UNASSIGNED

For supporting single node clusters, the fleet server integration package should be updated to use auto_expand_replicas with a 0-1 setting, for example.

This has been discovered recently, when running integration tests in ECK (https://github.com/elastic/cloud-on-k8s/issues/7376).

elasticmachine commented 9 months ago

Pinging @elastic/fleet (Team:Fleet)

nchaulet commented 9 months ago

@rhr323 I just created a PR that could help mitigate that issue, we will not write data anymore in those indices until Fleet is actually used https://github.com/elastic/kibana/pull/173689