Hi
04.12.2015, 20:11, "Anatoly Popov" <
anatol...@gmail.com>:
> Can I run one node of elliptics-server per machine and have two or more backends (one per device, e.g.) in it?
Yes, you can.
You have to put multiple structures into 'backends' section.
> Can I assign those backends to one device for development environment?
Elliptics backends work with directories, you can mount different devices into different directories and use them in config
> Can I assign them to different groups?
Yes, you can.
Elliptics config is described in great details at
http://doc.reverbrain.com/elliptics:configuration
> And final question, maybe a stupid one: in cluster backends with equal "group" are "replicas" of each other?
Now, backends with the same group form a single DHT ring and read/write load will be spread among those backends.
It is somewhat similar to raid0.
It is client who decides how to write data, in particular, how many replicas it writes and which groups are used.
For example, backrunner http proxy (
http://doc.reverbrain.com/backrunner:backrunner) uses notion of bucket
which contains list of groups where every write is copied, i.e. bucket name is a synonym for replica set.
dnet_ioclient tool uses '-g 1:2:3' option to show that given write should be placed into groups 1, 2 and 3.
Please note, that recovery also uses what client has provided, neither part of elliptics stories where its replicas are located.
That's why you have to be consistent with your replica sets, i.e. if you've started to use groups 1, 2 and 3
it should be use in the future too. You can add or remove groups from this set, but you can not use
1:2 for one key and 2:3 for others, otherwise recovery will copy data to all specified groups.