Infrastructure Controller (ic)

Description

Manages infrastructure changes within the site, distributes and synchronizes configurations, and supports the system update process within the site. Receives the configuration from mic and passes it to servers within the site. Synchronizes dynamic configuration with other sites: server availability states. Provides site statistics data.

Made redundant in Active-Passive mode on each site. Not scaled.

If the role is unavailable, the system within the site continues to operate normally, except for the ability to apply a new configuration to the site, update it, or synchronize server states with other sites. The system may split into several zones, each continuing to perform its functions independently.

Table 1. System characteristics

Code

ic

Operation mode

Service

Redundancy mode

Active-Passive

Site types

All

Layer

Configuration

Placement

Internal

State preservation and recovery on restart

No

Application

era_ic

Limitations

  • Must be located on every site.

  • Cannot be moved to another server in 1 step by changing the configuration.

Parameters

Table 2. Parameters
Name Type Default Description

name

str

required

Name. May consist of Latin letters and digits and must start with a letter.

roletype

str

required

Role type. Possible values: "ic".

ext

json

empty

Additional role options. Contains a JSON object or list.

enabled

bool

empty

Role activity flag. When set to false, the role does not participate in validation and is not started.

limit_of_cores

int

empty

Limit on the number of CPU logical cores used. Default: 0 - unlimited.

logging_default_level

int

empty

Default logging level set specifically for the role instance (microservice type). More

allow_divergence

bool

false

Flag allowing parameter differences in roles of the same group. Default: false - not allowed.

group

int

empty

Group number.
Horizontal scaling within a site is not supported. All role instances on the site must have the same value.
An integer from 1 to 9999999.

order

int

required

Order of the role instance within the group.
Determines the order in which takeover occurs in Active-Passive mode.

refreshinterval

int

30

Site statistics refresh interval in seconds.
Minimum value: 10.

takeover

bool

global

Takeover mode switch.

Failover - activation of a lower-priority service instance when the higher-priority service instance (leader of the active-passive group) is detected as unavailable.
Takeover - activation of the higher-priority service instance (leader of the active-passive group) during its recovery, accompanied by stopping the service on the lower-priority service instance.

  • If the mode is enabled, takeover is performed automatically.

  • If the mode is disabled, takeover is not performed; the recovered group leader temporarily becomes a follower and waits for the service to be unloaded on the lower-priority instance.

  • If the option is not set, its value from the current site parameters is used. If it is not set on the site, the value from the general section is used. If it is not set anywhere, takeover is enabled for more accurate load distribution according to the configured priorities.

Configuration example

Configuration management is performed in an application available to master domain administrators. The application hides the full configuration content, but it is still available through the API.

The configuration contains a section describing all instances of all roles. Parameters are defined for each specific role instance.

Node example
{
  "name": "ic2",
  "roletype": "ic",

  "group": "11130",
  "order": "1",

  "refreshinterval": "60"
}

See also