A runner's sharding settings. runner_address None makes a
client-only runner; runner_listen_address is where it binds, when
not at runner_address.
Attributes#
| Attribute | Type | Description |
|---|---|---|
runner_address | RunnerAddress | None | |
runner_listen_address | RunnerAddress | None | |
runner_shard_weight | int | |
available_shard_groups | tuple[str, ...] | |
assigned_shard_groups | tuple[str, ...] | |
shards_per_group | int | |
shard_lock_refresh_interval | Duration | |
shard_lock_expiration | Duration | |
shard_lock_disable_advisory | bool | |
preemptive_shutdown | bool | |
entity_mailbox_capacity | int | Unbounded | |
entity_mailbox_metrics | bool | |
max_resident_entities | int | Unbounded | |
unprocessed_message_batch_size | int | |
entity_max_idle_time | Duration | |
entity_registration_timeout | Duration | |
entity_termination_timeout | Duration | |
entity_message_poll_interval | Duration | |
entity_reply_poll_interval | Duration | |
refresh_assignments_interval | Duration | |
send_retry_interval | Duration | |
runner_join_debounce | Duration | How long the healthy runners must stay unchanged before runners that
joined get shards, so a burst of joins hands each shard off once. Only
joins wait, at most four times this long; |
runner_health_check_interval | Duration | How often runners are health checked (default 1 minute); unhealthy
ones lose their shards. The checks run on one runner, the host of the
runner health singleton, so they cannot see that runner crash: it keeps
its shards until runner storage stops listing it, which for SQL runner
storage is once its last heartbeat is older than
|
simulate_remote_serialization | bool |
Functions#
__init__#
__init__(*, runner_address, runner_listen_address, runner_shard_weight, available_shard_groups, assigned_shard_groups, shards_per_group, shard_lock_refresh_interval, shard_lock_expiration, shard_lock_disable_advisory, preemptive_shutdown, entity_mailbox_capacity, entity_mailbox_metrics, max_resident_entities, unprocessed_message_batch_size, entity_max_idle_time, entity_registration_timeout, entity_termination_timeout, entity_message_poll_interval, entity_reply_poll_interval, refresh_assignments_interval, send_retry_interval, runner_join_debounce, runner_health_check_interval, simulate_remote_serialization) -> None| Parameter | Type | Description |
|---|---|---|
runner_address | RunnerAddress | None | |
runner_listen_address | RunnerAddress | None | |
runner_shard_weight | int | |
available_shard_groups | tuple[str, ...] | |
assigned_shard_groups | tuple[str, ...] | |
shards_per_group | int | |
shard_lock_refresh_interval | Duration | |
shard_lock_expiration | Duration | |
shard_lock_disable_advisory | bool | |
preemptive_shutdown | bool | |
entity_mailbox_capacity | int | Unbounded | |
entity_mailbox_metrics | bool | |
max_resident_entities | int | Unbounded | |
unprocessed_message_batch_size | int | |
entity_max_idle_time | Duration | |
entity_registration_timeout | Duration | |
entity_termination_timeout | Duration | |
entity_message_poll_interval | Duration | |
entity_reply_poll_interval | Duration | |
refresh_assignments_interval | Duration | |
send_retry_interval | Duration | |
runner_join_debounce | Duration | |
runner_health_check_interval | Duration | |
simulate_remote_serialization | bool |