Elasticsearch multiple nodes - index not working

Hi,

I have a little problem. I started multiple nodes on one machine in one cluster.

But now if i want to create index. It isn't working.

 {
     "settings" : {
            "index" : {
                "number_of_shards" : 3,
                "number_of_replicas" : 2
            }
        }
}

Upper is index mapping.
Response is ok.

{
  "acknowledged": true
}

but in head plugin its look like this.

Configs look like this

node.name: testnode1
network.host: 127.0.0.1

All others settings is set to default.

Is there any other settings which i have to use to working multiple nodes on one machine? If there is, i can't find it. Can you help me please?

What version?

Sorry:)

"cluster_name": "devel",
"version": {
"number": "2.1.1",
"build_hash": "40e2c53a6b6c2972b3d13846e450e66f4375bd71",
"build_timestamp": "2015-12-15T13:05:55Z",
"build_snapshot": false,
"lucene_version": "5.3.1"

So your nodes have clustered, but they aren't allocating anything.
What do the logs show?

[2015-12-29 07:45:37,743][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [Lto6D9yVS0W8sTCHwI9sbQ][testnode2][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/1] free: 11.5gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:45:37,743][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [9391X5dqSsSTog57ys5GQA][testnode1][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/0] free: 11.5gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:45:37,743][INFO ][cluster.routing.allocation.decider] [testnode1] rerouting shards: [high disk watermark exceeded on one or more nodes]
[2015-12-29 07:45:37,746][INFO ][http                     ] [testnode2] publish_address {127.0.0.1:9201}, bound_addresses {127.0.0.1:9201}
[2015-12-29 07:45:37,746][INFO ][node                     ] [testnode2] started
[2015-12-29 07:45:41,632][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [Lto6D9yVS0W8sTCHwI9sbQ][testnode2][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/1] free: 11.5gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:45:41,633][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [9391X5dqSsSTog57ys5GQA][testnode1][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/0] free: 11.5gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:45:51,347][INFO ][cluster.metadata         ] [testnode1] [twitter] deleting index
[2015-12-29 07:45:56,157][INFO ][cluster.metadata         ] [testnode1] [twitter] creating index, cause [api], templates [], shards [3]/[2], mappings []
[2015-12-29 07:46:11,634][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [Lto6D9yVS0W8sTCHwI9sbQ][testnode2][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/1] free: 11.5gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:46:11,634][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [9391X5dqSsSTog57ys5GQA][testnode1][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/0] free: 11.5gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:46:41,635][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [Lto6D9yVS0W8sTCHwI9sbQ][testnode2][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/1] free: 11.4gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:46:41,635][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [9391X5dqSsSTog57ys5GQA][testnode1][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/0] free: 11.4gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:46:41,635][INFO ][cluster.routing.allocation.decider] [testnode1] rerouting shards: [high disk watermark exceeded on one or more nodes]
[2015-12-29 07:47:11,637][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [Lto6D9yVS0W8sTCHwI9sbQ][testnode2][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/1] free: 11.4gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:47:11,637][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [9391X5dqSsSTog57ys5GQA][testnode1][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/0] free: 11.4gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:47:41,637][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [Lto6D9yVS0W8sTCHwI9sbQ][testnode2][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/1] free: 11.4gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:47:41,637][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [9391X5dqSsSTog57ys5GQA][testnode1][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/0] free: 11.4gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:47:41,637][INFO ][cluster.routing.allocation.decider] [testnode1] rerouting shards: [high disk watermark exceeded on one or more nodes]
[2015-12-29 07:48:11,638][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [Lto6D9yVS0W8sTCHwI9sbQ][testnode2][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/1] free: 11.4gb[4.9%], shards will be relocated away from this node
[2015-12-29 07:48:11,639][WARN ][cluster.routing.allocation.decider] [testnode1] high disk watermark [90%] exceeded on [9391X5dqSsSTog57ys5GQA][testnode1][/Users/jakubvrchota/Documents/elasticsearch/data/devel/nodes/0] free: 11.4gb[4.9%], shards will be relocated away from this node

There's your answer then, you need more disk space.

Can I set shards max size?

I think that 11gb will be enough.

No, you need to control that yourself.