Created
December 11, 2017 15:30
-
-
Save rtsisyk/d8d5251f8ed2e41ecfd6d6be3f9c3a8c to your computer and use it in GitHub Desktop.
vshard configuration
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local cfg = { | |
memtx_memory = 100 * 1024 * 1024, | |
sharding = { | |
['cbf06940-0790-498b-948d-042b62cf3d29'] = { -- replicaset #1 | |
servers = { | |
['8a274925-a26d-47fc-9e1b-af88ce939412'] = { | |
uri = 'storage:storage@127.0.0.1:3301', | |
name = 'storage_1_a', | |
master = true | |
}, | |
['3de2e3e1-9ebe-4d0d-abb1-26d301b84633'] = { | |
uri = 'storage:storage@127.0.0.1:3302', | |
name = 'storage_1_b' | |
} | |
}, | |
}, -- replicaset #2 | |
['ac522f65-aa94-4134-9f64-51ee384f1a54'] = { -- replicaset #2 | |
servers = { | |
['1e02ae8a-afc0-4e91-ba34-843a356b8ed7'] = { | |
uri = 'storage:storage@127.0.0.1:3303', | |
name = 'storage_2_a', | |
master = true | |
}, | |
['001688c3-66f8-4a31-8e19-036c17d489c2'] = { | |
uri = 'storage:storage@127.0.0.1:3304', | |
name = 'storage_2_b' | |
} | |
}, | |
}, -- replicaset #1 | |
}, -- sharding | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment