hi everybody,
i have a 3 nodes 2.3.3 elk cluster.
i have one index named "idx_mys_pmm_iis-2017.02". 5 primary shards, 5 replicas shards.
Logstash 2.3.3 push the logs in this index.
in sense, i do :
"GET _cat/shards/idx_mys_pmm_iis-2017.02?v"
and i see this in response :
index shard prirep state docs store ip node
idx_mys_pmm_iis-2017.02 4 p STARTED 1809576 1.5gb node_UD0TX039
idx_mys_pmm_iis-2017.02 4 r STARTED 1809314 1.5gb node_UD0TX037
idx_mys_pmm_iis-2017.02 3 r STARTED 1808801 1.5gb node_UD0TX038
idx_mys_pmm_iis-2017.02 3 p STARTED 1808801 1.5gb node_UD0TX037
idx_mys_pmm_iis-2017.02 1 p STARTED 1811286 1.6gb node_UD0TX039
idx_mys_pmm_iis-2017.02 1 r STARTED 1811286 1.5gb node_UD0TX037
idx_mys_pmm_iis-2017.02 2 r STARTED 1808775 1.5gb node_UD0TX039
idx_mys_pmm_iis-2017.02 2 p STARTED 1808775 1.5gb node_UD0TX038
idx_mys_pmm_iis-2017.02 0 r STARTED 1809785 1.5gb node_UD0TX038
idx_mys_pmm_iis-2017.02 0 p STARTED 1809848 1.5gb node_UD0TX037
as u can see, it exists differences between primary and replicas shards for #0 and #4 shards.
then , I do a refresh on this index :
POST /idx_mys_pmm_iis-2017.02/_refresh
and this is what i get :
index shard prirep state docs store ip node
idx_mys_pmm_iis-2017.02 4 p STARTED 1811052 1.5gb node_UD0TX039
idx_mys_pmm_iis-2017.02 4 r STARTED 1811052 1.6gb node_UD0TX037
idx_mys_pmm_iis-2017.02 3 r STARTED 1810761 1.5gb node_UD0TX038
idx_mys_pmm_iis-2017.02 3 p STARTED 1810761 1.5gb node_UD0TX037
idx_mys_pmm_iis-2017.02 1 p STARTED 1813351 1.6gb node_UD0TX039
idx_mys_pmm_iis-2017.02 1 r STARTED 1813351 1.5gb node_UD0TX037
idx_mys_pmm_iis-2017.02 2 r STARTED 1810846 1.5gb node_UD0TX039
idx_mys_pmm_iis-2017.02 2 p STARTED 1810846 1.5gb node_UD0TX038
idx_mys_pmm_iis-2017.02 0 r STARTED 1811591 1.5gb node_UD0TX038
idx_mys_pmm_iis-2017.02 0 p STARTED 1811591 1.5gb node_UD0TX037
all is correct now...
can u explain to me why some events are in a primary shard and not in the replica's one (or vice versa) ?
and why, when i do a refresh, all become correct ... til the next refresh ...
ty very much for your answer...