-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathejobman.conf
121 lines (120 loc) · 3.06 KB
/
ejobman.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
[
{log, "/var/log/erpher/ej"},
{debug,
[
{config, 6},
{store, 6},
{get, 6},
{run, 6},
{http, 6},
{ets, 6}
]
},
{rabbit,
[
{port, 5672},
{host, '127.0.0.1'},
{user, <<"guest">>},
{password, <<"guest">>},
{vhost , <<"/">>},
{exchange , <<"ejobman">>},
{exchange_type , <<"topic">>},
{queue , <<"test_queue_2">>},
{routing_key , <<"new">>},
{timeout , 16},
{step_timeout , 0.2}
]
},
{ll_worker, [
{debug, [
{config, 4},
{store, 0},
{get, 4},
{run, 5},
{http, 5},
{ets, 3}
]},
{web_server_opts, [
{port, 8143},
{name, ejobman_monitoring_8143},
{ssl, true},
{ssl_opts, [
{certfile, "/etc/erpher/ssl/test_certificate.pem"},
{keyfile, "/etc/erpher/ssl/test_privkey_c.pem"}
]}
]},
{pools, [
[
{id, p1},
{min_workers, 1}, % long lasting workers
{restart_policy, delay},
{restart_delay, 10}, % sec. Delay before restarting the crashed worker
{worker_duration, 60}, % seconds. Time before terminate
{worker, [
{name, "/usr/bin/perl -Mstrict -w /etc/erpher/workers/t.pl"},
{debug,
[
{run, 6},
{http, 1}
]
}]}
],
[
{id, p2},
{min_workers, 2}, % long lasting workers
{worker_duration, 300}, % seconds. Time before terminate
{worker, [
{name, "/etc/erpher/workers/test.sh"},
{debug,
[
{run, 6},
{http, 1}
]
}]}
]
]}
]},
{handler, [
{url_rewrite, [
[
{src_host_part, "host2.localdomain"},
{dst_host_part, "127.0.0.1"}
],
[
{src_host_part, "mdt.megaplan.kulikov"},
{dst_host_part, "192.168.9.183"}
],
[
{src_host_part, "192.168.9.183"},
{dst_host_hdr, "promo.megaplan.kulikov"}
],
[
{src_host_part, "promo.megaplan.kulikov"},
{dst_host_part, "192.168.9.183"},
{dst_host_hdr, "promo.megaplan.kulikov"}
],
[
{src_type, regex},
{src_host_part, "127\\.0\\.0\\.\\d+"},
{dst_host_part, "127.0.0.1"},
{dst_host_hdr, "host3.localdomain"}
],
[
{src_type, regex},
{src_host_part, "127\\.\\d+\\.\\d+\\.\\d+"},
{dst_host_part, "127.0.0.2"},
{dst_host_hdr, "host2.localdomain"}
]
]},
{max_children, 1000}, % to process short command
{debug,
[
{config, 4},
{store, 0},
{get, 4},
{run, 5},
{http, 5},
{ets, 3}
]
}]}
].