|
Ripples 1.0
High Performant Software Architecture For Transaction Processing
|
#include <config.h>
Structure describes application configuration object.
| char* config_s::application_log_name |
Name to use for application log.
| char* config_s::application_log_path |
Path where to store application log.
| char config_s::application_log_realpath[FILE_REALPATH_MAX] |
Holds the realpath for application log.
| int config_s::epoll_num_events_tcp |
Maximum number of TCP events epoll will return in a vectorloop iteration.
| int config_s::epoll_num_events_udp |
Maximum number of UDP events epoll will return in a vectorloop iteration.
| size_t config_s::loop_slowdown_one |
Sleep time in microseconds for loop slowdown stage one.
| size_t config_s::loop_slowdown_three |
Sleep time in microseconds for loop slowdown stage three.
| size_t config_s::loop_slowdown_two |
Sleep time in microseconds for loop slowdown stage two.
| size_t config_s::process_thread_count |
Number of vectorloop (DNS query processing) threads to start.
| size_t* config_s::process_thread_masks |
Array of vectorloop thread masks, one for each thread, and each thread can be assigned to only one CPU.
| char* config_s::query_log_base_name |
Query log base name.
| size_t config_s::query_log_buffer_size |
Query log buffer size.
| char* config_s::query_log_path |
Path on disk where to store query logs.
| char* config_s::query_log_realpath |
Query log directory realpath
| size_t config_s::query_log_rotate_size |
Size at which to rotate query log.
| char* config_s::resource_1_filepath |
Full file path for resource 1.
| char* config_s::resource_1_name |
Name of resource 1.
| size_t config_s::resource_1_update_freq |
Frequency at which to check for updated resource 1.
| size_t config_s::tcp_conn_simultaneous_queries_count |
Number of queries (in TCP conn read buffer) to parse and resolve simultaneously.
This also sets the tcp read buffer size as tcp_conn_simultaneous_queries_count * (2 + dns_query_request_max_len).
This also sets the tcp write buffer size as tcp_conn_simultaneous_queries_count * (2 + dns_query_response_max_len).
| size_t config_s::tcp_conn_socket_recvbuff_size |
TCP socket receive buffer size.
| size_t config_s::tcp_conn_socket_sendbuff_size |
TCP socket send buffer size.
| size_t config_s::tcp_conns_per_vl_max |
Maximum number of active TCP connections per vectorloop.
| bool config_s::tcp_enable |
Flag to indicate if receiving DNS queries over TCP should be enabled.
| size_t config_s::tcp_keepalive |
Number of miliseconds TCP connection will stay open and IDLE after receiving a query.
| size_t config_s::tcp_listener_max_accept_new_conn |
Maximum number of TCP connections that will be accepted per vectorloop interation.
| int config_s::tcp_listener_pending_conns_max |
Maximum number of pending connections that TCP listener will allow to be queued. When this max is reached new connection attempts are rejected.
| uint16_t config_s::tcp_listener_port |
TCP listener port.
| size_t config_s::tcp_query_recv_timeout |
Number of miliseconds TCP connection will wait to receive a full query. This timeout applies when connection is first created, and also when a subsequent partial query is received.
| size_t config_s::tcp_query_send_timeout |
Number of miliseconds TCP connection will wait for socket to become unblocked for write. This is basically total time we are willing to wait for query response to be sent over TCP.
| size_t config_s::tcp_readbuff_size |
Size of read buffer in connection object. This setting does not have equivalent CLI option. Instead it is calculated based on setting "tcp_conn_simultaneous_queries_count" * (RIP_NS_PACKETSZ + 2).
| size_t config_s::tcp_writebuff_size |
Size of write buffer in connection object. This setting does not have equivalent CLI option. Instead it starts at "tcp_conn_simultaneous_queries_count" * (RIP_NS_PACKETSZ + 2) and increased in increments of RIP_NS_UDP_MAXMSG until it reaches max size of RIP_NS_MAXMSG (64k).
| size_t config_s::udp_conn_vector_len |
Number of entries in UDP receive vector. This setting is also used to size UDP write vector and UDP queries vector.
| bool config_s::udp_enable |
Flag to indicate if receiving DNS queries over UDP should be enabled.
| uint16_t config_s::udp_listener_port |
UDP listener port.
| size_t config_s::udp_socket_recvbuff_size |
UDP socket receive buffer size.
| size_t config_s::udp_socket_sendbuff_size |
UDP socket send buffer size.