Log Storage (logstore)
Description
Provides long-term storage of log files from all servers and nodes. Exists within each site independently of others.
Is the data provider for the log file access API. Uses disk storage; the maximum size of stored data is configured in the options, after which data is automatically cleaned up.
Made redundant in Active-Passive mode. Not scaled.
Code |
|
Operation mode |
|
Redundancy mode |
|
Site types |
|
Layer |
|
Placement |
|
State preservation and recovery on restart |
|
Application |
|
Own storage |
|
Limitations
-
If the role is absent, guaranteed log storage is not provided, except that logs remain available for some time directly on the servers where they were created by the roles.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
|
|
required |
Name. May consist of Latin letters and digits and must start with a letter. |
|
|
required |
Role type. Possible values: |
|
|
empty |
Additional role options. Contains a JSON object or list. |
|
|
empty |
Role activity flag. When set to false, the role does not participate in validation and is not started. |
|
|
empty |
Limit on the number of CPU logical cores used. Default: 0 - unlimited. |
|
|
empty |
Default logging level set specifically for the role instance (microservice type). More |
|
|
|
Flag allowing parameter differences in roles of the same group. Default: false - not allowed. |
|
|
required |
Group number. |
|
|
required |
Order of the role instance within the group. |
|
|
empty |
Alias of the server directory for placing and storing log files. |
|
|
|
Number of days to retain log files. |
|
|
|
Maximum size of stored log files in GB. |
|
|
global |
Takeover mode switch.
|
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.
{
"name": "logstore1",
"roletype": "logstore",
"group": 11110,
"order": 1,
"storepath": "alias://paths/c"
}