archipelago: Update conf documentation about nr_ops.
[archipelago] / xseg / conf / archipelago.conf
1 # xseg
2
3 # Max xseg ports supported by segment
4 SEGMENT_PORTS = 1024
5 # Max segment size
6 SEGMENT_SIZE = 5120
7
8 # Start port of xsegbd devices
9 XSEGBD_START=0
10 # End port of xsegbd devices
11 XSEGBD_END=499
12
13 # Start of port range that can be used by the vlmc tool
14 VTOOL_START=1003
15 # End of port range that can be used by the vlmc tool
16 VTOOL_END=1022
17
18 # (peer role, peer type)
19 # Mandatory peer roles:
20 #       blockerb
21 #       blockerm
22 #       mapperd
23 #       vlmcd
24 #
25 # Available peer types:
26 #       rados_blocker
27 #       file_blocker
28 #       mapperd
29 #       vlmcd
30 #
31 # Order matters. Peers will be started with list order and stopped with reversed
32 # order.
33
34 roles = [('blockerb', 'file_blocker'),
35          ('blockerm', 'file_blocker'),
36          ('mapperd', 'mapperd'),
37          ('vlmcd', 'vlmcd')]
38
39 # Generic peer options
40 # portno_start: Start of port range that will be used by the peer
41 # portno_end: End of port range that will be used by the peer
42 # nr_ops: Max number of flying operations. Must be a power of 2.
43 # log_level: verbosity levels for each xseg peer
44 #            0 - Error
45 #            1 - Warnings
46 #            2 - Info
47 #            3 - Debug
48 # Warning: debug level 3 logs A LOT!
49 # nr_threads: Number of threads of each peer. Currently only blockers supports
50 #             threads with the following tricks:
51 #             a) Threads in file_blocker are I/O threads that block.
52 #             b) Threads in rados_blocker are processing threads. For lock
53 #             congestion reasons, avoid setting them to a value larger than 4.
54
55
56 # file_blocker specific options:
57 #
58 # archip_dir: Where archipelago files will reside
59 # fdcache: Fd cache size
60
61 # rados_blocker specific options:
62 #
63 # pool: rados pool where objects will reside
64
65 blockerb= {
66     'portno_start': 1000,
67     'portno_end': 1000,
68     'log_level': 3,
69     'nr_ops': 64,
70     'nr_threads': 64,
71     'archip_dir': '/srv/archip/blocks',
72     'fdcache': 512,
73 }
74
75 blockerm = {
76     'portno_start': 1002,
77     'portno_end': 1002,
78     'log_level': 3,
79     'nr_ops': 64,
80     'nr_threads': 64,
81     'archip_dir': '/srv/archip/maps',
82     'fdcache': 512,
83 }
84
85 # mapperd specific options:
86 #
87 # blockerb_port: target port that will be used to communicate with the blockerb
88 # blockerm_port: target port that will be used to communicate with the blockerm
89
90 mapperd = {
91     'portno_start': 1001,
92     'portno_end': 1001,
93     'log_level': 3,
94     'nr_ops': 512,
95     'blockerb_port': 1000,
96     'blockerm_port': 1002
97 }
98
99 # vlmcd specific options:
100 #
101 # blocker_port: target port that will be used to communicate with the blockerb
102 # mapper_port: target port that will be used to communicate with the mapper
103
104 vlmcd = {
105     'portno_start': 500,
106     'portno_end': 999,
107     'log_level': 3,
108     'nr_ops': 512,
109     'blocker_port': 1000,
110     'mapper_port': 1001
111 }
112
113