summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/monkey/conf/monkey.conf.in
blob: 32e626320b858cd6fbb567891eb9ca9ba027122b (plain)
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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
# Monkey HTTP Server - Configuration
# ==================================
# These are the main variables and their descriptions, defined in respect
# to the configuration of the different types of directives.

[SERVER]
    # Listen:
    # -------
    # The Listen directive maps the port and optionally restricts the
    # network interface from where Monkey will be listens for incoming
    # connections. Multiple Listen directives are allowed.
    #
    # The Listen directive requires a port number, preceded by an
    # optional IPv4 or IPv6 address separated by a colon (:).
    # IPv6 addresses must be enclosed in brackets ([]), e.g:
    #
    # Listen 127.0.0.1:2001
    # Listen [::1]:2001

    Listen @MK_CONF_LISTEN@

    # Workers:
    # --------
    # Monkey launches threads to attend clients; each worker thread is capable
    # of attending more than one client request at one time. The amount of
    # clients that can be handled by each thread is calculated using the
    # number of file descriptors allowed by the system. If this variable
    # is set to 0 monkey will launch one thread per processor.

    Workers @MK_CONF_WORKERS@

    # Timeout:
    # --------
    # The largest span of time, expressed in seconds, during which you should
    # wait to receive the information or waiting time for the remote host to
    # accept an answer. (Timeout > 0)

    Timeout @MK_CONF_TIMEOUT@

    # PidFile:
    # --------
    # File where the server guards the process number when starting.

    PidFile @MK_PATH_PIDPATH@/@MK_PIDFILE@

    # UserDir:
    # --------
    # Directory name for users home (~/user).

    UserDir @MK_CONF_USERDIR@

    # Indexfile:
    # ----------
    # Number of the initial file of aperture when calling a directory.

    Indexfile @MK_CONF_INDEXFILE@

    # HideVersion:
    # ------------
    # For security reasons, sometimes people want to hide the version of his
    # own webserver to clients (values on/off).

    HideVersion @MK_CONF_HIDEVERSION@

    # Resume:
    # -------
    # Allow clients to request files by ranges (values on/off).

    Resume @MK_CONF_RESUME@

    # User:
    # -----
    # If you want the webserver to run as a process of a defined user, you can
    # define it in this variable. For the change of user to work, it's necessary
    # to execute Monkey with root privileges. If it's started by a user that
    # that doesn't have root privileges, this variable will be omitted.

    User @MK_CONF_USER@

    # -----------------
    #  ADVANCED CONFIG
    # -----------------
    # Just change the next variables if you know what are you doing.

    # KeepAlive:
    # ----------
    # Allow persistent connections. (on/off)

    KeepAlive @MK_CONF_KA@

    # KeepAliveTimeout
    # ----------------
    # Number of seconds to wait for the next request in a persistent
    # connection (value > 0).

    KeepAliveTimeout @MK_CONF_KA_TIMEOUT@

    # MaxKeepAliveRequest:
    # --------------------
    # Maximum number of requests per connection. (value > 0)

    MaxKeepAliveRequest @MK_CONF_KA_MAXREQ@

    # MaxRequestSize:
    # ---------------
    # When a request arrives, Monkey allocs a 'chunk' of memory space
    # to receive the incoming data. As many times the incoming data
    # size is undeterminated, Monkey increases the buffer as required. This
    # variable defines the maximum size that the buffer can grow in terms
    # of KB. Example: defining 'MaxRequestSize 32' means 32 Kilobytes.
    # The value defined must be greater than zero. Default value defined
    # is 32.

    MaxRequestSize @MK_CONF_REQ_SIZE@

    # SymLink:
    # --------
    # Allow request to symbolic link files.

    SymLink @MK_CONF_SYMLINK@

    # DefaultMimeType:
    # ----------------
    # If a static content is requested and it does not contain a known extension,
    # Monkey will send the mime type specified on this directive.

    DefaultMimeType @MK_CONF_DEFAULT_MIME@

    # FDT:
    # ----
    # The File Descriptor Table (FDT) it's an internal mechanism to share open
    # file descriptors under specific threads and virtual host context. When
    # enabled, it helps to reduce the number of opened file descriptors for the
    # same resource and the number of required system calls to open and close
    # files.
    #
    # The overhead in memory of this feature is around ~5KB per worker.

    FDT @MK_CONF_FDT@

    # OverCapacity:
    # -------------
    # When the server is over capacity at networking level, is required to
    # prepare a contingency plan. The OverCapacity feature allows to define
    # the behavior under this situation. Monkey defines three options:
    #
    #  Drop   : just drop any new incoming connection.
    #  Resist : try to serve all request, even some of them may delay.
    #  TooBusy: report a 503 Service Unavailable HTTP status.
    #
    # The default behavior is 'Resist'.

    OverCapacity @MK_CONF_OVERCAPACITY@

    # FDLimit:
    # --------
    # Defines the maximum number of file descriptors that the server
    # can use, it can be translated to the maximum number of connections.
    # If the value is not set, Monkey will use the soft limit imposed to
    # the process (ulimit -n).
    #
    # If the variable is set, Monkey will try to increase or decrease
    # the limit under it restrictions. For values higher that Hard Limit
    # Monkey needs to be started by root user.
    #
    # FDLimit 4096