Agent communication settings
The following provides the method how to set the communication for the Go application server.
-
whatap.server.host ip_address
Default
127.0.0.1,127.0.0.1
Set the server to deliver the agent's collected data to. If there are multiple IPs due to the collection server redundancy, they can be specified by separating with comma (,). The collection server's proxy daemon must be serviced in the listening state for the specified IP.
-
whatap.server.port tcp_port
Default
6600
Set the port of the collection server. Because only one port can be specified, the collection servers specified in whatap_server_host must use the same port.
-
tcp_so_timeout Millisecond
Default
60000
Set the socket timeout of the TCP session that communicates with the collection server.
-
tcp_connection_timeout Millisecond
Default
5000
Set the connection time out of the TCP session that communicates with the collection server.
-
net_send_max_bytes Byte
Default
5242880
Set the maximum size of the data to send to the collection server at one time.
-
net_ipc_host ip_address
Default
127.0.0.1
It is the agent's TCP address for sending the data collected by the application via IPC/TCP to the agent. It is not recommended, but use this option when the agent is running on an external server.
NoteTo apply the settings, restart the application.
-
net_ipc_port tcp_port
Default
6600
The WhaTap agent transfers the data collected by the tracer to the collection server via IPC/TCP. You can specify the port of the initial TCP server. If the provided port 6600 is in use, you can use this option. To change the TCP server port of the agent, modify in the /usr/whatap/agent/whatap.conf file path.
Note-
If the server port has been changed, update it also in the whatap.conf file of the application to establish the communication.
-
To apply the settings, restart the application.
-
-
net_so_time Int
Default
120000
(Millisecond)You can set the maximum waiting time when reading data upon TCP connection. After the set time has elapsed, it is processed as a timeout.
-
net_write_buffer_size Int
Default
2*1024*1024
(2 Mb)This option sets the size of the buffer used when transmitting data collected over the network.