Seastar
High performance C++ framework for concurrent servers
Public Attributes | List of all members
seastar::app_template::config Struct Reference

Public Attributes

sstring name = "App"
 
sstring description = ""
 
std::chrono::duration< double > default_task_quota = std::chrono::microseconds(500)
 
bool auto_handle_sigint_sigterm = true
 Handle SIGINT/SIGTERM by calling reactor::stop() More...
 
unsigned max_networking_aio_io_control_blocks = 10000
 
size_t reserve_additional_memory_per_shard = 0
 

Member Data Documentation

◆ auto_handle_sigint_sigterm

bool seastar::app_template::config::auto_handle_sigint_sigterm = true

Handle SIGINT/SIGTERM by calling reactor::stop()

When true, Seastar will set up signal handlers for SIGINT/SIGTERM that call reactor::stop(). The reactor will then execute callbacks installed by reactor::at_exit().

When false, Seastar will not set up signal handlers for SIGINT/SIGTERM automatically. The default behavior (terminate the program) will be kept. You can adjust the behavior of SIGINT/SIGTERM by installing signal handlers via reactor::handle_signal().

◆ description

sstring seastar::app_template::config::description = ""

The description of the application.

Will be printed on the top of the –help output. Lines should be hard-wrapped for 80 chars.

◆ max_networking_aio_io_control_blocks

unsigned seastar::app_template::config::max_networking_aio_io_control_blocks = 10000

Specifies the default value for linux-aio I/O control blocks. This translates to the maximum number of sockets the shard can handle.

◆ name

sstring seastar::app_template::config::name = "App"

The name of the application.

Will be used in the –help output to distinguish command line args registered by the application, as opposed to those registered by seastar and its subsystems.

◆ reserve_additional_memory_per_shard

size_t seastar::app_template::config::reserve_additional_memory_per_shard = 0

The amount of memory that should not be used by the seastar allocator, additional to the amount of memory already reserved for the OS. This can be used when the application allocates some of its memory using the seastar allocator, and some using the system allocator, in particular when it uses the mmap system call with MAP_ANONYMOUS which is not overridden in seastar.


The documentation for this struct was generated from the following file: