mirror of
https://gitee.com/acl-dev/acl.git
synced 2024-12-12 11:55:13 +08:00
107 lines
3.1 KiB
CFEngine3
107 lines
3.1 KiB
CFEngine3
|
|
|||
|
service server {
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD>ֹ<EFBFBD><D6B9><EFBFBD><EFBFBD>
|
|||
|
master_disable = no
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD>˿ں<CBBF>
|
|||
|
# master_service = 127.0.0.1:6010
|
|||
|
master_service = 127.0.0.1:7070, 127.0.0.1:7071, 127.0.0.1:7072, 127.0.0.1:7073
|
|||
|
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD>ӿ<D7BD>
|
|||
|
# master_service = aio_echo.sock
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
# master_type = inet
|
|||
|
# master_type = unix
|
|||
|
master_type = sock
|
|||
|
|
|||
|
# <09><><EFBFBD>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD>쳣<EFBFBD>˳<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD>ǿգ<C7BF><D5A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӽ<EFBFBD><D3BD><EFBFBD><EFBFBD>쳣<EFBFBD>˳<EFBFBD><CBB3><EFBFBD><EFBFBD><EFBFBD>Ϣ֪ͨ<CDA8>÷<EFBFBD><C3B7><EFBFBD>
|
|||
|
# master_notify_addr = 127.0.0.1:5801
|
|||
|
|
|||
|
# <09>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӳٽ<D3B3><D9BD>ܿͻ<DCBF><CDBB><EFBFBD><EFBF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BD><EFBFBD> /opt/analyse/var/log/public/ Ŀ¼<C4BF><C2BC>,
|
|||
|
master_private = n
|
|||
|
master_unpriv = n
|
|||
|
# <09>Ƿ<EFBFBD><C7B7><EFBFBD>Ҫ chroot: n -- no, y -- yes
|
|||
|
master_chroot = n
|
|||
|
# ÿ<><C3BF><EFBFBD>ʱ<E0B3A4>䴥<EFBFBD><E4B4A5>һ<EFBFBD>Σ<EFBFBD><CEA3><EFBFBD>λΪ<CEBB><CEAA>(<28><><EFBFBD><EFBFBD> trigger ģʽ<C4A3><CABD>Ч)
|
|||
|
master_wakeup = -
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
master_maxproc = 1
|
|||
|
# <09><><EFBFBD>̳<EFBFBD><CCB3><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
master_command = gid_server
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>־<EFBFBD><D6BE>¼<EFBFBD>ļ<EFBFBD>
|
|||
|
master_log = {install_path}/var/gid_server.log
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֻ<EFBFBD><D6BB>Ϊ: -u [<5B>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ij<EFBFBD><C4B3>ͨ<EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>]
|
|||
|
# master_args = -u
|
|||
|
# <09><><EFBFBD>ݸ<EFBFBD><DDB8><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӽ<EFBFBD><D3BD>̵Ļ<CCB5><C4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>, <20><><EFBFBD><EFBFBD>ͨ<EFBFBD><CDA8> getenv("SERVICE_ENV") <20><><EFBFBD>ô<EFBFBD>ֵ
|
|||
|
# master_env = mempool_limit:512000000
|
|||
|
# master_env = logme:FALSE, priority:E_LOG_INFO, action:E_LOG_PER_DAY, flush:sync_flush, imit_size:512,\
|
|||
|
# sync_action:E_LOG_SEM, sem_name:/tmp/ioctl_echo.sem
|
|||
|
|
|||
|
# ÿ<><C3BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>
|
|||
|
ioctl_use_limit = 0
|
|||
|
# ÿ<><C3BF><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD>Ŀ<EFBFBD><C4BF>г<EFBFBD>ʱʱ<CAB1>䣬<EFBFBD><E4A3AC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>˳<EFBFBD>
|
|||
|
ioctl_idle_limit = 0
|
|||
|
# <09><>¼<EFBFBD><C2BC><EFBFBD><EFBFBD>PID<49><44>λ<EFBFBD><CEBB>(<28><><EFBFBD>ڶ<EFBFBD><DAB6><EFBFBD><EFBFBD><EFBFBD>ʵ<EFBFBD><CAB5><EFBFBD><EFBFBD>˵û<CBB5><C3BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>)
|
|||
|
ioctl_pid_dir = ./var
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>ڵ<EFBFBD>·<EFBFBD><C2B7>
|
|||
|
# ioctl_queue_dir = /home/guozhaohui/opt/analyse/var
|
|||
|
ioctl_queue_dir = {install_path}/var
|
|||
|
# <09><>д<EFBFBD><D0B4>ʱʱ<CAB1><CAB1>, <20><>λΪ<CEBB><CEAA>
|
|||
|
ioctl_rw_timeout = 120
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ļ<EFBFBD><C4BB><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>С
|
|||
|
ioctl_buf_size = 8192
|
|||
|
# ÿ<><C3BF> accept ʱ<><CAB1>ѭ<EFBFBD><D1AD><EFBFBD><EFBFBD><EFBFBD>յ<EFBFBD><D5B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
ioctl_max_accept = 25
|
|||
|
# <09>ڲ<EFBFBD><DAB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>dz<EFBFBD><C7B3>͵<EFBFBD><CDB5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>£<EFBFBD><C2A3><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> 10 <20><>/<2F><> <20><><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ҿ<EFBFBD><D2BF><EFBFBD>ֵ(<28><><EFBFBD><EFBFBD>Ϊ1)<29><><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD>¼<EFBFBD>ѭ<EFBFBD><D1AD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>,
|
|||
|
# <09>Ӷ<EFBFBD><D3B6><EFBFBD>ֹ<EFBFBD><D6B9><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> select <20>ϵ<EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ӱ<EFBFBD><D3B0><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ٶ<EFBFBD>
|
|||
|
# ioctl_enable_dog = 1
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD><CAB1><EFBFBD>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
ioctl_owner = root
|
|||
|
# ioctl_owner = guozhaohui
|
|||
|
|
|||
|
# <09><> select <20><><EFBFBD><EFBFBD>ѭ<EFBFBD><D1AD>ʱ<EFBFBD><CAB1>ʱ<EFBFBD><CAB1><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
# <09><>λΪ<CEBB><CEAA>
|
|||
|
ioctl_delay_sec = 0
|
|||
|
# <09><>λΪ<CEAA><CEA2>
|
|||
|
ioctl_delay_usec = 500
|
|||
|
|
|||
|
# <20><><EFBFBD><EFBFBD><EFBFBD>¼<EFBFBD>ѭ<EFBFBD><D1AD><EFBFBD>ķ<EFBFBD>ʽ: select(default), poll, kernel(epoll/devpoll/kqueue)
|
|||
|
ioctl_event_mode = select
|
|||
|
|
|||
|
# <09>̳߳ص<CCB3><D8B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD>߳<EFBFBD><DFB3><EFBFBD>
|
|||
|
ioctl_max_threads = 250
|
|||
|
# <09>̵߳Ķ<CCB5>ջ<EFBFBD>ռ<EFBFBD><D5BC><EFBFBD>С<EFBFBD><D0A1><EFBFBD><EFBFBD>λΪ<CEBB>ֽڣ<D6BD>0<EFBFBD><30>ʾʹ<CABE><CAB9>ϵͳȱʡֵ
|
|||
|
ioctl_stacksize = 0
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> udserver <20>Ŀͻ<C4BF><CDBB><EFBFBD>IP<49><50>ַ<EFBFBD><D6B7>Χ
|
|||
|
ioctl_access_allow = 0.0.0.0:255.255.255.255
|
|||
|
|
|||
|
|
|||
|
## app_main.c <20><>Ҫ<EFBFBD>IJ<EFBFBD><C4B2><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
# <09>ͻ<EFBFBD><CDBB><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD><D3B5><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱ<EFBFBD>䷧ֵ
|
|||
|
app_client_idle_limit = 120
|
|||
|
|
|||
|
############################################################################
|
|||
|
# Ӧ<><D3A6><EFBFBD>Լ<EFBFBD><D4BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ѡ<EFBFBD><D1A1>
|
|||
|
|
|||
|
# <09>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ڴ<EFBFBD>״̬
|
|||
|
# debug_mem = 0
|
|||
|
# <09>洢<EFBFBD>ĸ<EFBFBD>Ŀ¼
|
|||
|
gid_path = {install_path}/var/gid
|
|||
|
# <09>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD>ͬ<EFBFBD><CDAC><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
sync_gid = 1
|
|||
|
# <09><><EFBFBD><EFBFBD>ֵ
|
|||
|
gid_step = 1
|
|||
|
# <09>Ƿ<EFBFBD>ѭ<EFBFBD><D1AD><EFBFBD><EFBFBD>ȡ<EFBFBD><C8A1><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
loop_enable = 1
|
|||
|
# ȱʡ<C8B1>ķ<EFBFBD><C4B7><EFBFBD>Э<EFBFBD><D0AD>
|
|||
|
proto_default = http
|
|||
|
# Э<><D0AD><EFBFBD><EFBFBD><EFBFBD>˿ڵĶ<DAB5><C4B6>ձ<EFBFBD>
|
|||
|
proto_list = http|127.0.0.1:7070|127.0.0.1:7071, cmdline|127.0.0.1:7072|127.0.0.1:7073
|
|||
|
# <09><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
test_user_id = 10001
|
|||
|
}
|