Master Infrastructure Controller (mic)

Description

Manages changes in the infrastructure of the entire system, manages configuration distribution and synchronization, and the update process.

Made redundant in Active-Passive mode. Not scaled.

If the role is unavailable, the system continues to operate normally, except for the ability to change the configuration and update the system. The zone from which the master site is unavailable remains without configuration changes and updates until it connects. The system may split into several zones, each continuing to perform its functions independently.

Table 1. System characteristics

Code

mic

Operation mode

Service

Redundancy mode

Active-Passive

Site types

Master

Layer

Configuration

Placement

Internal

State preservation and recovery on restart

No

Application

era_mc

Limitations

  • Present in the initial configuration.

  • Can be located only on the master 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: "mic".

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

required

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.

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": "mic1",
  "roletype": "mic",

  "group": 11140,
  "order": 1
}

See also