neo.conf 1.49 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
# Note: Unless otherwise noted, all parameters in this configuration file
# must be identical for all nodes in a given cluster.

# Default parameters.
[DEFAULT]
# The cluster name
# This must be set.
# It must be a name unique to a given cluster, to prevent foreign
# misconfigured nodes from interfering.
cluster:

# 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.
masters: 127.0.0.1:10000

# Partition table configuration
# 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
replicas: 1
# 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.
partitions: 20

# Individual nodes parameters
# Some parameters makes no sense to be defined in [DEFAULT] section.
# They are:
# bind: The ip:port the node will listen on.
34 35 36
# database: Storage nodes only.
#   Syntax for MySQL database is [user[:password]@]database[unix_socket]
#   Those database must be created manualy.
37 38 39 40 41 42 43 44 45 46 47 48 49 50

# Admin node
[admin]
bind: 127.0.0.1:9999

# Master nodes
[master]
bind: 127.0.0.1:10000

# Storage nodes
[storage]
database: neo:neo@neo1
bind: 127.0.0.1:20000