I have 5 nodes for elasticsearch.
When i use 3 nodes, i just use them as default mode.
Is it okay to use default mode for 5 nodes?
Or is there any good options to set role for 5 nodes?
Yes that's normally fine. Generally we recommend only having 3 master-eligible nodes, but having all 5 with all roles should be ok too, and is much simpler to set up.