forked from paypal/squbs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
reference.conf
105 lines (83 loc) · 3.55 KB
/
reference.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
squbs {
# Name of the actor system for squbs to create.
actorsystem-name = "squbs"
# graceful stop timeout
# default timeout for one actor to process a graceful stop
# if extends the trait org.squbs.lifecycle.GracefulStopHelper
default-stop-timeout = 3s
# An external configuration directory to supply external application.conf. The location of this directory
# is relative to the working directory of the squbs process.
external-config-dir = squbsconfig
# An external configuration file name list. Any file with the name in the list under the external-confi-dir will be
# loaded during squbs initialization for Actor System settings. Implicit "application.conf" will be loaded
# besides this file name list
external-config-files = []
}
# default proxy for squbs service
default-proxy {
# All squbs proxies carry the type "squbs.proxy"
type = squbs.proxy
# a processorFactory must be provided in a proxy
processorFactory = "org.squbs.pipeline.SimpleProcessorFactory"
# settings will be parsed by processorFactory and create a processor
settings = {
# handlers is the unified place to indicate all the request/response/common handlers class name
# each handler should have a default constructor and derived from trait Handler
# handlers = {
# myhandler = com.myorg.myhandler
# }
# inbound and outbound determine the handlers to be go throught in request/response phases
# inbound = []
# outbound = []
}
}
default-listener {
# All squbs listeners carry the type "squbs.listener"
type = squbs.listener
# Add aliases for the listener in case the cube's route declaration binds to a listener with a different name.
# Just comma separated names are good, like...
# aliases = [ foo-listener, bar-listener ]
aliases = []
# Service bind to particular address/interface. The default is 0.0.0.0 which is any address/interface.
bind-address = "0.0.0.0"
# Whether or not using full host name for address binding
full-address = false
# Service bind to particular port. 8080 is the default.
bind-port = 8080
# Listener uses HTTPS?
secure = false
# HTTPS needs client authorization? This configuration is not read if secure is false.
need-client-auth = false
# Any custom SSLContext provider? Setting to "default" means platform default.
ssl-context = default
}
blocking-dispatcher {
# Dispatcher is the name of the event-based dispatcher
type = Dispatcher
# What kind of ExecutionService to use
executor = "thread-pool-executor"
thread-pool-executor {
# Min number of threads to cap factor-based core number to
core-pool-size-min = 2
# The core pool size factor is used to determine thread pool core size
# using the following formula: ceil(available processors * factor).
# Resulting size is then bounded by the core-pool-size-min and
# core-pool-size-max values.
core-pool-size-factor = 3.0
# Max number of threads to cap factor-based number to
core-pool-size-max = 24
# Minimum number of threads to cap factor-based max number to
# (if using a bounded task queue)
max-pool-size-min = 2
# Max no of threads (if using a bounded task queue) is determined by
# calculating: ceil(available processors * factor)
max-pool-size-factor = 3.0
# Max number of threads to cap factor-based max number to
# (if using a bounded task queue)
max-pool-size-max = 24
}
# Throughput defines the maximum number of messages to be
# processed per actor before the thread jumps to the next actor.
# Set to 1 for as fair as possible.
throughput = 2
}