-
Notifications
You must be signed in to change notification settings - Fork 388
Cluster Configuration
Roman Tsisyk edited this page Aug 17, 2015
·
6 revisions
Implement the common configuration and monitoring for asynchronous replication, synchronous replication (bsync) and sharding.
box.cfg {
cluster = {
peers = {
server_1 = { uri = '192.168.0.1', zone = 'mow', replica_set = 0 };
server_2 = { uri = '192.168.8.1', zone = 'ny', replica_set=1 };
server_3 = { uri = '192.168.16.1', zone = 'lon', replica_set=2 };
server_4 = '192.168.24.1';
};
login = "default login if not specified in peers";
password = "";
port = 3313;
mode = "async|bsync";
redundancy = "2";
-- ... other async/bsync replication parameters:
-- read_timeout = xx;
-- write_timeout = xx;
}
}

Available keys for peer
:
-
uri
- remote URI (login:password@host:port) -
zone
- sharding zone -
replica\_set
- replication set
> box.info.cluster
---
- 1:
name: server1
uri: '192.178.0.1' # without password
zone: mow
replica_set: 0
lag: 10 # max(uplink.lag, downlink.lag)
vclock: { 1: 32 (+3), 2: 33 (-3) }
uplink:
status: connected
host: <host>
family: <family>
port: <port>
downlink:
status: connected
host: <host>
family: <family>
port: <port>
- default
port
,login
andpassword
options in cfg - how to get peer name for connected replicas
- C coding guidelines ↗
- Lua coding guidelines ↗
- Python coding guidelines ↗
- Maintainer's guide
- Debugging
Architecture
- Server architecture
- R tree index quick start and usage
- LuaJIT
- Vinyl
- Vinyl Architecture
- Vinyl Disk Layout
- Vinyl math
- Vinyl Cookbook
- Bullet1
- SQL
- Appserver modules
- Testing
- Performance
- Privileges and Access control
How To ...?
- ... configure build system
- ... add new fuzzers
- ... build RPM or Deb package using packpack
- ... calculate memory size
- ... debug core dump of stripped tarantool
- ... debug core from different OS
- ... debug fuzzer
- ... generate new bootstrap snapshot
- ... use Address Sanitizer
- ... collect a coredump
- ... generate luacov report for builtin module
- ... verify modified lua files via luacheck
- ... verify Lua files in third_party?
- ... rerun failed jobs
- ... update a third party repository
- Fix wrong decimal indexing after upgrade to 2.10.1
- Caveats when upgrading a cluster on Tarantool 1.6
- Fix illegal field type in a space format when upgrading to 2.10.4
Useful links