I am trying to follow a tutorial and as far as I know there should only be one running Elasticsearch instance and 3 documents added to 1 index. When I asked for health, it told me there are 2 nodes and 11 shards.
{
"cluster_name": "elk1",
"status": "green",
"timed_out": false,
"number_of_nodes": 2,
"number_of_data_nodes": 2,
"active_primary_shards": 11,
"active_shards": 22,
"relocating_shards": 0,
"initializing_shards": 0,
"unassigned_shards": 0,
"delayed_unassigned_shards": 0,
"number_of_pending_tasks": 0,
"number_of_in_flight_fetch": 0,
"task_max_waiting_in_queue_millis": 0,
"active_shards_percent_as_number": 100
}
I'm still reading about shards and data distribution among multiple nodes, but even so the output is confusing. There should only be one node as I'm pretty sure I'm only running one ElasticSearch instance. As a side question, how are documents distributed among shards: vertically or horizontally? In other words if there are 3 documents in one index, is all of doc1 in a shard, or are some fields in doc1 in one shard and the remaining fields in another shard?