-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathapp-spec-v1.toml
More file actions
53 lines (43 loc) · 997 Bytes
/
app-spec-v1.toml
File metadata and controls
53 lines (43 loc) · 997 Bytes
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
kind = "AppSpec"
roles = [101, 100]
runtime_images = ["sysinner/innerstack-g3:el8"]
type_tags = ["net"]
[meta]
id = "sysinner-httplb"
name = "Http Load Balancer "
version = "1.0"
subtitle = "高性能 http 负载均衡服务"
[[packages]]
name = "sysinner-httplb"
version = "0.11"
[[executors]]
name = "main"
updated = 0
exec_start = """if pidof sysinner-httplb; then
exit 0
fi
rsync -av {{.inpack_prefix_sysinner_httplb}}/* /opt/sysinner/httplb/
/opt/sysinner/httplb/bin/sysinner-httplb -log_dir=/opt/sysinner/httplb/var/log -minloglevel=1 -logtolevels=true > /dev/null 2>&1 &
"""
exec_stop = "killall sysinner-httplb"
priority = 8
[executors.plan]
on_tick = 60
[[service_ports]]
name = "http"
box_port = 8080
host_port = 80
[[service_ports]]
name = "https"
box_port = 8443
host_port = 443
[exp_res]
cpu_min = 1
mem_min = 128
vol_min = 1
[exp_deploy]
rep_min = 1
rep_max = 4
sys_state = 1
failover_time = 300
network_mode = 1