neo.conf 2.66 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.
Julien Muchembled's avatar
Julien Muchembled committed
3
# This file is optionnal: 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 22 23 24 25 26 27 28 29 30

# 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
31 32 33 34
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
35 36 37 38 39 40 41 42 43 44
# 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
45

Julien Muchembled's avatar
Julien Muchembled committed
46 47 48 49 50 51 52
# 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

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

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

Julien Muchembled's avatar
Julien Muchembled committed
70 71 72 73
# Nodes can have their own certicates.
;cert = admin.crt
;key = admin.key

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

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