forked from gptankit/serviceq
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsq.properties
61 lines (41 loc) · 1.74 KB
/
sq.properties
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
#ServiceQ Configuration File
#------------------#
# Cluster Settings #
#------------------#
#Port on which serviceq listens on
LISTENER_PORT=5252
#Protocol the endpoints listens on -- 'http' for both http/https
PROTO=http
#Endpoints seperated by comma (,) -- no spaces allowed, can be a combination of http/https
ENDPOINTS=http://127.0.0.1:8001,http://127.0.0.1:8000
#Concurrency peak defines how many max concurrent connections are allowed to the cluster of endpoints defined above
CONCURRENCY_PEAK=2048
#Timeout (ms) is added to each outgoing request to endpoints, the existing timeouts are overriden, value of -1 means no timeout
OUTGOING_REQUEST_TIMEOUT=300000
#Interval (ms) between two retries -- recommended 0 for best performance
RETRY_GAP=0
#-------------------------#
# Deferred Queue Settings #
#-------------------------#
#Enable deferred queue for requests on final failures (cluster down)
ENABLE_DEFERRED_Q=true
#Request format enables deferred queue on only the mentioned method and route -- picked up if ENABLE_DEFERRED_Q is true
#DEFERRED_Q_REQUEST_FORMATS=POST /orders,PUT,PATCH,DELETE
#DEFERRED_Q_REQUEST_FORMATS=ALL
DEFERRED_Q_REQUEST_FORMATS=POST,PUT,PATCH,DELETE
#-------------------#
# Response Settings #
#-------------------#
#Custom response headers to be forwarded to client -- no spaces allowed
#CUSTOM_RESPONSE_HEADERS=Connection: keep-alive|Server
CUSTOM_RESPONSE_HEADERS=Server
#Keep Alive Timeout (ms), value of -1 means no timeout
KEEP_ALIVE_TIMEOUT=120000
#--------------#
# SSL Settings #
#--------------#
#Use SSL connection
SSL_ENABLE=false
#Path to certificate and private keys (do not provide quotes "") -- picked up if SSL_ENABLE is true
SSL_CERTIFICATE_FILE=/usr/certs/cert.pem
SSL_PRIVATE_KEY_FILE=/usr/certs/key.pem