Node working directory

Table of contents

During operation, the system uses the local disk to store service information.

All such resources are placed in the catalog /var.

Each node has its own working directory – /var/lib/era/_workdir/<NODE>.

Each node has access to local directories subject to various kinds of synchronization – /var/lib/era/files. Each such directory is uniformly addressed in scripts (see Localpaths), and is used in various processes by internal system services.

Each node maintains log-logs/var/log/era/<NODE>.

If the system is running in a docker container, the paths you specify are only available within the container. The working directory is in the external volume and remains on disk after the docker container is removed.

Catalog content

filetree
Table 1. Resource Overview
Resource Assignment

/var/lib/era/_workdir/<NODE>

Node working directory.

Each node is named automatically based on the names of the logical roles executing in it and the IP address of the server.

The working directories of the node contain the resources of the executable roles.

For example, in the schema, the mdc role stores the license file (lic/r.lic), the configuration management roles store the update file (autoupdate) and the active configuration (cfg and cfgv3.json), and so on.

Also in the working directory is a symlink to a directory with logs and trays.

/var/lib/era/files

Local directories for all sorts of synchronization. Each such directory is uniformly addressed in scripts (see Localpaths), used in various processes by internal system services.

  • siteshare – A directory referencing a NAS that is accessible to all servers at the current site.

  • globalshare – A directory referencing a NAS that is accessible to all servers of all sites.

  • local – A local directory for temporary storage of resources that does not use synchronization.

  • syncroot – local directory for automatic delayed synchronization of media files.

The paths to these categories of service directories on each server can be individually changed when creating the configuration. The given location is recommended and is used by default.

/var/log/era/<NODE>

Directory with logs nodes.

It also contains traces of virtual machine processes when they are used for debugging purposes – trc/<TRACE>.txt.

/var/run/era/<NODE>

The directory contains pipes and sockets of the active node.

The pipes are used for debugging purposes to connect to the node in the virtual machine interpreter erlang.