Set directIO in default archipelago conf
[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     'direct': True,
74 }
75
76 blockerm = {
77     'portno_start': 1002,
78     'portno_end': 1002,
79     'log_level': 3,
80     'nr_ops': 64,
81     'nr_threads': 64,
82     'archip_dir': '/srv/archip/maps',
83     'fdcache': 512,
84     'direct': True,
85 }
86
87 # mapperd specific options:
88 #
89 # blockerb_port: target port that will be used to communicate with the blockerb
90 # blockerm_port: target port that will be used to communicate with the blockerm
91
92 mapperd = {
93     'portno_start': 1001,
94     'portno_end': 1001,
95     'log_level': 3,
96     'nr_ops': 512,
97     'blockerb_port': 1000,
98     'blockerm_port': 1002
99 }
100
101 # vlmcd specific options:
102 #
103 # blocker_port: target port that will be used to communicate with the blockerb
104 # mapper_port: target port that will be used to communicate with the mapper
105
106 vlmcd = {
107     'portno_start': 500,
108     'portno_end': 999,
109     'log_level': 3,
110     'nr_ops': 512,
111     'blocker_port': 1000,
112     'mapper_port': 1001
113 }
114
115