neo.conf 2.74 KB
Newer Older
1 2
# Note: Unless otherwise noted, all parameters in this configuration file
# must be identical for all nodes in a given cluster.
3
# This file is optional: parameters can be given at the command line.
4

5 6 7
# See SafeConfigParser at https://docs.python.org/2/library/configparser.html
# for more information about the syntax.

8 9 10
# ~ and ~user constructions are expanded for all paths, even for those that
# may appear in 'database' option.

Julien Muchembled's avatar
Julien Muchembled committed
11
# Common parameters.
12 13 14
[DEFAULT]
# The cluster name
# This must be set.
Julien Muchembled's avatar
Julien Muchembled committed
15
# IMPORTANT: It must be a name unique to a given cluster, to prevent foreign
16
# misconfigured nodes from interfering.
Julien Muchembled's avatar
Julien Muchembled committed
17
cluster: test
18 19 20 21

# The list of master nodes
# This list should be identical for all nodes in a given cluster for
# maximum availability.
22 23
# With replicas, it is recommended to have 1 master node per machine
# (physical or not). Otherwise, 1 is enough (but more do not harm).
24 25 26 27 28 29 30 31
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
32 33 34 35
replicas: 0
# IMPORTANT: NEO does not try to spread replicas on different physical devices
#            so replicas should not be used if you have at least 2 nodes
#            storing data on the same device.
Julien Muchembled's avatar
Julien Muchembled committed
36 37 38 39 40 41 42 43 44 45
# Partitions: How data spreads among storage nodes.
# IMPORTANT: This can not be changed once the cluster contains data.
partitions: 12
# The maximum number of usable storage nodes is: partitions * (replicas + 1)

# Master-slave asynchronous replication
# The following 2 options are only required if you want to backup another
# NEO cluster.
;upstream_cluster: test2
;upstream_masters: 127.0.0.1:30000
46

Julien Muchembled's avatar
Julien Muchembled committed
47 48 49 50 51 52 53
# The 3 following options must be specified to enabled SSL.
# CA should be the same for all nodes, and it can be the concatenation of
# several CAs and CRLs.
;ca = ~/etc/ca.crt
;cert = ~/etc/cert.crt
;key = ~/etc/cert.key

54 55 56 57
# 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.
Julien Muchembled's avatar
Julien Muchembled committed
58 59 60 61
# database: Storage nodes only. Syntax for:
#   - MySQL: [user[:password]@]database[unix_socket]
#     Database must be created manually.
#   - SQLite: path
62
# engine: Optional parameter for MySQL.
63
#         Can be InnoDB (default), RocksDB or TokuDB.
64 65 66 67

# Admin node
[admin]
bind: 127.0.0.1:9999
68
# Paths to log files can be specified here, but be careful not to do it in a
69
# common section.
70
;logfile: ~/log/admin.log
71

72
# Nodes can have their own certificates.
Julien Muchembled's avatar
Julien Muchembled committed
73 74 75
;cert = admin.crt
;key = admin.key

76 77 78 79 80 81 82 83 84
# Master nodes
[master]
bind: 127.0.0.1:10000

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