neo.conf 1.96 KB
Newer Older
Vincent Pelletier's avatar
Vincent Pelletier committed
1 2 3
# Note: Unless otherwise noted, all parameters in this configuration file
# must be identical for all nodes in a given cluster.

Yoshinori Okuji's avatar
Yoshinori Okuji committed
4
# Default parameters.
5
[DEFAULT]
6
# The cluster name
Vincent Pelletier's avatar
Vincent Pelletier committed
7 8 9
# This must be set.
# It must be a name unique to a given cluster, to prevent foreign
# misconfigured nodes from interfering.
10
name: 
Vincent Pelletier's avatar
Vincent Pelletier committed
11 12 13 14 15

# The list of master nodes
# Master nodes not not in this list will be rejected by the cluster.
# This list should be identical for all nodes in a given cluster for
# maximum availability.
16
master_nodes: 127.0.0.1:10010 127.0.0.1:10011
Vincent Pelletier's avatar
Vincent Pelletier committed
17

18
# Partition table configuration
Vincent Pelletier's avatar
Vincent Pelletier committed
19 20 21 22 23
# Data in the cluster is distributed among nodes using a partition table, which
# has the following parameters.
# Replicas: How many copies of a partition should exist at a time.
#   0 means no redundancy
#   1 means there is a spare copy of all partitions
Yoshinori Okuji's avatar
Yoshinori Okuji committed
24
replicas: 1
Vincent Pelletier's avatar
Vincent Pelletier committed
25 26 27
# Partitions: How data spreads among storage nodes. This number must be at
# least equal to the number of storage nodes the cluster contains.
# IMPORTANT: This must not be changed once the cluster contains data.
28
partitions: 20
Vincent Pelletier's avatar
Vincent Pelletier committed
29 30 31 32 33 34

# MySQL credentials
# MySQL username and password used by storage nodes to access data.
# This user must have the right to drop & create tables in his database
# (see storage node configuration sections).
# This can be overriden in individual storage configurations.
Yoshinori Okuji's avatar
Yoshinori Okuji committed
35 36
user: neo
password: neo
Vincent Pelletier's avatar
Vincent Pelletier committed
37 38 39 40 41 42 43

# Individual nodes parameters
# Some parameters makes no sense to be defined in [DEFAULT] section.
# They are:
# server: The ip:port the node will listen on.
# database: Storage nodes only. The MySQL database to use to store data.
#           Those database must be created manualy.
Yoshinori Okuji's avatar
Yoshinori Okuji committed
44

45 46 47 48 49
# Admin node
[admin]
server: 127.0.0.1:5555

# Master nodes
50 51 52 53 54
[master1]
server: 127.0.0.1:10010

[master2]
server: 127.0.0.1:10011
55

56
# Storage nodes
Yoshinori Okuji's avatar
Yoshinori Okuji committed
57 58 59
[storage1]
database: neo1
server: 127.0.0.1:10020
60 61 62 63 64

[storage2]
database: neo2
server: 127.0.0.1:10021

65 66 67 68 69 70 71 72
[storage3]
database: neo3
server: 127.0.0.1:10022

[storage4]
database: neo4
server: 127.0.0.1:10023