Microservice (mservice)
Description
A descriptor for a console microservice that is started and maintained.
Started by one or several nodes at once. In case of crash - automatically restarts, but excludes cyclic restart (5 times in 10 seconds). If exceeded, the system forcibly disables the account.
Executed as a command line that can contain macros to substitute the domain, the URLs of the system webservers on the current site, and the path to the logs folder.
The command is executed in the working directory, where the attached zip archive (attachment) is unpacked beforehand. The archive may contain a script, an application or other files. The archive must be mandatory.
Fields
{
"id": uuid,
"name": str,
"cmdline": str,
"cmdparam": str,
"enabled": bool,
"attachment": file,
"opts": {
"title": str,
"comment": str,
"mode": str,
"site_mode": str,
"selected_sites": array<str>,
"restart_mode": str,
"heartbeat_timeout": str,
"attachment_info": object
},
"ext": {
"ct": date,
"lwt": date
}
}
Specification | Description |
---|---|
Field: |
Identifier. Can be specified at creation, otherwise generated by the system. |
Field: |
Title |
Field: |
Executable command. |
Field: |
Parameters to be added to the executable command. |
Field: |
Activity Switch. |
Field: |
A property for loading an archive with the contents of the working directory. Basically contains an executable script or program. |
Field: |
|
Field: |
Arbitrary header |
Field: |
Arbitrary comment |
Field: |
Mode of operation within the site:
|
Section of role instances msvc on which this downloadable microservice is allowed to execute. For each instance of msvc, multiple sections may or may not be specified at once in the configuration. If there is none among the msvc instances in the current site that serves the specified section, then all msvc instances in the current site are allowed to serve the entity. |
|
Field: |
Mode for selecting a leader among the msvc instances allowed to execute this microservice given the specified section. It is performed by the key sorting method:
|
Field: |
Mode of operation between sites:
|
Field: |
List of sites for mode site_mode='selected'. |
Field: |
Restart mode:
|
Field: |
Notification interval for msvc role instance activity notification (500 - 60000 ms). |
Field: |
Readable information about the uploaded attachment. The attachment itself is uploaded via the /attachment path in the REST-API. |
Field: |
Allows you to extend the compound with arbitrary keys and values |
Field: |
Object creation time |
Field: |
Time of last modification of the object |