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