You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: fog.conf
+24-5Lines changed: 24 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@
4
4
5
5
# FW_PASSWORD: If a password is set then clients must send it as a setting.
6
6
password = ""
7
-
# FW_LISTEN_ADDR: IP and port to listen on.
7
+
# FW_LISTEN_ADDR: IP and UDP port to listen on for UDP packets to write to disk.
8
8
listen_addr = ":9000"
9
9
# FW_FLUSH_INTERVAL: How old an item must be to flush it to disk.
10
10
flush_interval = "16s"
@@ -19,18 +19,37 @@ log_file_mb = 0
19
19
# FW_LOG_FILES: How many logs files to keep around.
20
20
log_files = 0
21
21
# FW_BUFFER_UDP: This is the UDP socket buffer in bytes.
22
-
buffer_udp = 1048576
22
+
buffer_udp = 4194304 # 4MB
23
23
# FW_BUFFER_PACKET: This is the size of the read buffer per packet.
24
-
buffer_packet = 8192
24
+
buffer_packet = 262144 # 256KB
25
25
# FW_BUFFER_CHAN: This is the channel buffer between the listeners and processors.
26
-
buffer_chan = 10240
26
+
buffer_chan = 32768 # 32 thousand
27
27
# FW_LISTENERS: How many UDP socket listener threads to start.
28
28
listeners = 1
29
29
# FW_PROCESSORS: How many packet processor threads to start.
30
30
processors = 1
31
31
# FW_WRITERS: How many file system operations may happen in parallel. 2-5 is fine with fast disks.
32
32
writers = 1
33
33
# FW_BUFFER_FILE_SYS: How many file pointers can be buffered into the file system writer.
34
-
buffer_file_sys = 10240
34
+
buffer_file_sys = 32768 # 32 thousand
35
35
# FW_DEBUG: Prints 1 line per packet when enabled.
36
36
debug = false
37
+
38
+
# FW_HTTP_SERVER: Configuration for the HTTP server.
39
+
[http_server]
40
+
# FW_HTTP_SERVER_LISTEN_ADDR: IP and TCP port to listen on. For API and metrics via HTTP.
41
+
listen_addr = ":9000"
42
+
# FW_HTTP_SERVER_READ_TIMEOUT: Maximum duration for reading the entire request, including the body.
43
+
read_timeout = "10s"
44
+
# FW_HTTP_SERVER_READ_HEADER_TIMEOUT: Maximum duration for reading the request header.
45
+
read_header_timeout = "2s"
46
+
# FW_HTTP_SERVER_WRITE_TIMEOUT: Maximum duration for writing the response to the client.
47
+
write_timeout = "10s"
48
+
# FW_HTTP_SERVER_IDLE_TIMEOUT: Maximum amount of time to wait for the next request when keep-alives are enabled.
49
+
idle_timeout = "120s"
50
+
# FW_HTTP_SERVER_MAX_HEADER_BYTES: Maximum number of bytes the server will read parsing the request header's keys and values, including the request line.
51
+
max_header_bytes = 65536 # 64KB
52
+
# FW_HTTP_SERVER_TLS_CERT_PATH: Path to the TLS certificate file. Provide this to enable HTTPS.
53
+
tls_cert_path = ""
54
+
# FW_HTTP_SERVER_TLS_KEY_PATH: Path to the TLS private key file for the certificate. Provide this to enable HTTPS.
0 commit comments