Skip to content

Empire

This preset offers configuration helpers related to Emperor and his vassals.

Classes

Broodlord

Broodlord(
    zerg_socket: str, 
    zerg_die_on_idle: int | None = None, 
    vassals_home: Strlist = None, 
    zerg_count: int | None = None, 
    vassal_overload_sos_interval: int | None = None, 
    vassal_queue_items_sos: int | None = None, 
    section_emperor: Section = None, 
    section_zerg: Section = None
)

This mode is a way for a vassal to ask for reinforcements to the Emperor.

Reinforcements are new vassals spawned on demand generally bound on the same socket.

Warning

If you are looking for a way to dynamically adapt the number of workers of an instance, check the Cheaper subsystem - adaptive process spawning mode.

1
*Broodlord mode is for spawning totally new instances.*

configure

.configure() -> tuple[Section, Section]

Configures broodlord mode and returns emperor and zerg sections.