Skip to main content

System Settings

System settings are used to maintain dual-machine hot standby (master-standby switching), alarm recovery strategies, network parameters, time synchronization, system control, and PING (network connectivity testing). After entering the page, you can switch between different configuration modules via the left navigation side.

Operation boundaries

System settings are part of the operation and maintenance function. Before modifying the network, time, redundancy, or performing a restart, confirm the maintenance window, remote connection method, and backup configuration; Do not arbitrarily adjust these parameters during critical stages of equipment operation on the production floor.

First, look at the terminology

TerminologyOn-site understanding
Dual-machine hot standbyTwo gateways form the same redundant group, and at the same time, the authorized unit is responsible for data collection, data forwarding, alarming, and rule engine tasks.
Current Working/StandbyCurrent Work Node undertakes production tasks; The standby node remains connected and synchronized, and production tasks can only start after meeting the takeover conditions.
Connection CheckRegularly confirm that the two gateways are online at the endpoint. After consecutive link failures, the system then uses shared arbitration authorization to determine whether takeover is permitted.
Shared arbitrationThe same SQLite file accessible by both gateways. The system uses file locks and short leases to allow only one machine to obtain work authorization, not an independent third node.
PINGnetwork connectivity test. PING only indicates that the IP is reachable and does not necessarily mean that Web, database, MQTT, or PLC ports are always available.
DHCPautomatically acquires IP, gateway, and DNS. Production gateways are generally recommended to use a fixed IP to avoid address changes after reboot.
DNSdomain name resolution server. When using domain names to connect to services like MQTT, OPC UA, Webhook, NTP, etc., you need to have a usable DNS.
NTP / UTCNTP is the server for automatic time calibration; UTC is the Universal Standard Time. Alarms, historical data, and log checks rely on accurate timing.

Function Entry

After logging into GatewayRuntime Web, enter "System Management → System Settings."

System Settings Page

Module List

ModulePurpose
Dual Machine Hot StandbyView local roles, four types of production tasks, peer connections, and arbitration authorization status, configure node identity, dual network link, TLS, shared arbitration, and historical compensation.
Alarm ConfigurationConfigure whether the alarm is removed directly from the real-time alarm list after recovery.
Network ConfigurationView network card information and edit DHCP, IP, subnet mask, gateway, and DNS server.
Time Sync ConfigurationView local time, UTC time, and time zones, manually set system time, configure NTP servers, and sync intervals.
System controlRestart the GatewayRuntime runtime, restart the application, download and configure database backups.
PING TestPerform connectivity tests on specified IPs or domain names, checking successes, failures, packet loss rates, average latency, and per-packet results.

Dual Machine Hot Standby

Click "Dual Machine Hot Standby" on the left. The page centrally displays the current node, local role, peer connection, shared arbitration authorization, configuration summary, and historical data protection, and provides operations such as editing, refreshing, immediate synchronization to the peer, and manual switching between primary and standby devices.

Dual-machine hot standby page

High-availability working model for primary-standby redundancy

AreaKey Check
Current nodeIs this machine currently working, standby, taking over, needing processing, or a failed switch; Check whether the four types of tasks—collection, data forwarding, alarm, and rule engine—are consistent with the local role.
Peer ConnectionThe transmission status, complete health, number of consecutive failures, identified peer nodes, and peer roles of each link. Only after establishing a connection and passing group name, node identity, role, and security validation can the link be complete and healthy.
Task AuthorizationAfter configuring shared arbitrage, confirm that the authorization is held by and only the current worker node, and check the authorization expiration date, master-standby handover serial number, and recent switch errors.
Historical Data ProtectionView protected targets, peer synchronization, write-to-database status, journal, and database write authorization status.

Click "Edit Configuration" to open the dual-machine hot standby side panel.

Configuration ItemsDescription
Enable dual-machine hot standbyAfter activation, the two gateways will run as master-standby roles. After shutting down, the machine runs independently and does not participate in peer connection or arbitration.
Redundant group nameBoth gateways must fill in the same non-null name. Nodes with inconsistent names cannot establish control relationships.
Local node nameStable unique name of the current gateway. Required when enabling dual-machine hot standby; two gateways cannot use the same name.
Peer node nameName of another node the current gateway expects to connect. Required when enabled, and must be exactly the same as the "local node name" of the counterpart to avoid incorrect node access.
Connection MethodOne unit selects "Waiting for Peer Connection," the other selects "Active Connection to Terminal"; The roles at both ends must complement each other.
Peer addressAddress of the first control connection, usually IP:port, without http:// or https://. The listening side enters its local listening address; the connecting side enters the reachable peer address.
Dual Network / Second Link AddressRequired after second link enabled and cannot be the same as the first link. It is recommended that the two links use different network cards, switches, or segments; Any complete health chain can maintain end-to-end online judgment.
Connection keys at both endsBoth gateways must fill in the same complex string for control link identity verification. It is not equivalent to link encryption.
Local connection certificate / Trusted root certificate / Peer certificate HostnameBidirectional TLS configuration optional. All three fields must be filled in or left blank; The hostname or IP should exist in the peer service certificate SAN. Each gateway selects its own connection certificate and trusts the root certificate issued by the peer certificate.
Encryption protocol / Check if certificates have been revokedSet permitted protocol versions and revocation check policies when using TLS; No special requirements should use the system security default values.
Arbitration files shared between two machinesRecommended production environment configuration. Both gateways must point to the same SQLite file on shared storage, and the system allows only one to obtain work authorization through file locks and short leases. You can use a consistent UNC path or shared storage mount path on both ends, and ensure both ends have read/write and file lock capabilities.
Work authorization durationShared arbitration lease validity period, unit milliseconds, minimum 3000, default 15000.
Work Authorization RenewalLease renewal period, unit: milliseconds, minimum 500, and must not exceed one-third of the authorized duration; Default is 3000.
Switch safety marginnodes must stop production tasks in advance. The safety window, unit, milliseconds, minimum 500; the sum of the renewal cycle must be less than the authorized duration, default 2000.
Connection Inspection IntervalEnd-to-end connection inspection interval, unit: milliseconds, minimum 1000, default 60000. Too small increases network load, while too large lengthens fault detection time.
Number of disconnection checksAfter all configured links fail continuously and reach this threshold, fault handling begins, ranging from 1 to 100, default 3. When configuring shared arbitration, nodes must still obtain work authorization to activate production tasks.
Data Synchronization IntervalThe interval between the current working node and the standby node synchronizing configuration and variable data, unit: milliseconds, minimum 1000, default 1000.
Historical Data/Alarm CompensationWhen enabled, supported historical targets first write the local reliable Journal, then synchronize to the peer, and fill in after switching or database recovery. This ability is enabled by default and is independent of the target's own dual-database mirroring.
Historical Protection ParametersCan adjust the number of synchronizations per session, peer confirmation timeout, local waiting for synchronization limit, database write authorization duration and renewal, and failure retry interval. Set by disconnection duration, historical write volume, network latency, database load, and disk capacity.
Upgrade Check

After upgrading the configuration of the old dual machines, you should not keep only the original address and connection key. Please first fill in the names of redundant groups, local nodes, and end-to-end nodes on both gateways, then check that the connection methods are complementary, that both ends have consistent keys, and configure shared arbitration and TLS according to production risk. After saving, confirm the counterpart identity, link integrity and health, arbitration authorization, and the status of four types of production tasks, before conducting the switching drill.

Historical Data and Historical Alarm Reliability

After dual-machine hot standby is enabled, historical data and alarms can use main and backup historical compensation. This feature is enabled by default: the system saves historical events to the local Journal and synchronizes them to the peer node; Before a node obtains work authorization and becomes the current working node, it will first fill in any incomplete entries and avoid duplication by using the unique record key when writing to standard SQL history tables. Therefore, after master-standby switching, short-term interruptions on the peer link, or runtime reboots, historical records still in the local Journal or offline cache can be rewritten, preventing duplicate writes of already stored records.

ProjectDescription
Applicable SubjectsHistorical data objectives, historical alarm objectives.
PrerequisitesEnable dual-machine hot standby and keep the "Historical Data/Alarm Compensation" switch on.
Applicable databasesStandard SQL write links: SqlServer, MySQL, Sqlite, PostgreSQL.
Not applicableQuestDB, TDengine, custom SQL patterns, historical table scripts, historical alarm table scripts, and other custom write links are not included in this deduplication and completion mechanism.
On-site RecommendationsIt is recommended to enable offline caching simultaneously for historical data and alarm targets, and reserve disk space based on offline time, write volume, maximum number of rows retained in journals, and maximum rows in cached files. Before going live, verify master-standby switching, disconnection, temporary database unavailability, and restart recovery in the maintenance window.

Historical Data Protection Diagnostics

The "Historical Data Protection" area is used to confirm whether historical targets support master-reserve compensation, whether there is backlog in the journal, and whether the current node holds authorization to write to the target library. After enabling dual-machine hot standby and configuring historical data or alarm targets, it is recommended to check the area after joint debugging, switching drills, and recovery.

RegionDescription
Overview MetricsDisplays the current node, maximum sequence, The number to be synchronized to the peer and the number to be written to the database. If backlog remains above zero for a long time, check the dual-machine link, peer node, target database, and offline cache.
Filter ConditionsYou can filter events by Journal target key, source node, record type, record unique key, and whether to wait for Peer or DB.
Target SupportLists the reliable synchronization status of historical data targets and historical alarm targets, plugin names, target types, reasons not supported, and Journal target keys.
Journal StatusSummarizes the maximum sequence, total rows, pending Peer, pending DB, earliest backlog time, and latest event time by target key, source node, and record type.
Epoch LeaseView the holding node, lease expiration date, and current status of the target library lease, used to determine whether the current node has inscription rights.
Journal EventsView the sequence of individual historical events, source nodes, record types, record unique keys, peer/DB tags, and raw loads, suitable for locating a variable or alert for why it hasn't been updated.

When the protection status is "Not Supported," common reasons include enabling custom SQL, enabling historical table scripts, or using QuestDB, TDengine, or other non-standard SQL write links. Such targets can still use their own offline cache, but do not include idempotent completion and diagnostic statistics in the main and secondary history.

the security boundary

The shared arbitration file is not an independent third node, but the same SQLite file accessible to both gateways. If shared arbitration is not configured, it will enter link-only active-standby mode, and network partitioning may cause active trading. When all three TLS items are left blank, the two-end connection key is still used for identity verification, but the link content is unencrypted TCP. Production deployments should be configured with reliable shared storage and certificates, and verify scenarios such as broken chain, power outage, shared storage unavailability, recovery, and manual switching at maintenance windows.

Alarm Configuration

Click "Alarm Configuration" on the left. This module is used to set the handling method after alarm recovery.

Alarm Configuration Page

Configuration ItemsDescription
Remove immediately after alarm recoveryOnce enabled, remove alarms from the real-time alarm list during recovery; When closed, the restored alarm still needs to be confirmed before being removed.

The switch will save immediately after switching. Before modifying the production environment, confirm the duty and alarm confirmation processes to avoid premature removal of alarms during resumption.

Network Configuration

Click "Network Configuration" on the left. The page displays the current network card list and supports refreshing and editing.

Network Configuration Page

ColumnDescription
Network card nameNetwork interface name.
DescriptionNetwork interface description.
TypeNetwork interface type.
StatusEnabled or disabled status.
IP addresscurrent network card IP.
Subnet maskCurrent subnet mask.
GatewayDefault Gateway.
MAC addressphysical address of the network card.
DHCPwhether DHCP is enabled.
OperationOpen the network configuration side panel.

When editing network configurations, the following fields can be maintained.

Configuration ItemsDescription
Network Card NameRead-only displays the current network card.
Enable DHCPAfter activation, the system automatically obtains network parameters.
IP addressdisplayed and editable when DHCP is closed. The fixed address of the gateway operating host in the field network should be filled in.
Subnet maskdisplayed and editable when DHCP is closed. It must match the on-site network segment plan; incorrect entries will prevent devices on the same network segment from accessing it.
Gatewaydisplayed and editable when DHCP is closed. When accessing cross-subnet devices, NTP servers, or external platforms, the correct default gateway must be provided.
DNS Serversupports multi-value input and allows you to choose or manually create DNS addresses. When accessing MQTT, Kafka, OPC UA, Webhook, or NTP services using domain names, you need an available DNS.
Note

Modifying the network card, gateway, or DNS may cause the current web connection to be interrupted. Before saving, please confirm the remote access method and backup connections on site.

After enabling DHCP, IP, subnet masks, gateways, and DNS are assigned by the network environment, and addresses may change after device reboot or lease updates. When the production gateway requires a fixed access address, static IPs are prioritized or fixed leases are bound to the on-site DHCP server.

Time Sync Configuration

Click "Time Sync Configuration" on the left. The page is divided into two sections: "System Time" and "NTP Configuration."

Time Sync Configuration Page

AreaConfiguration ItemsDescription
System timeLocal timeHost local time.
System timeUTC timecurrent UTC time.
System timeTime zoneName of the host time zone.
System timetime zone IDHost time zone identifier.
System TimeSet TimeOpen the "Set System Time" side panel, select a new time, and confirm save.
NTP ConfigurationEnable NTPControl whether NTP Auto-Sync is enabled.
NTP configurationNTP serverdisplays after enabling NTP, supporting multi-selection, filtering, and manual creation.
NTP configurationsynchronous intervaldisplays a range of 1 to 1440 minutes after enabling NTP.
NTP configurationinstant synchronizationexecutes NTP synchronization instantly.
NTP configurationsavesave NTP enabled status, server list, and sync interval.

Manually setting system time affects collection timestamp, alarm time, historical data storage time, and certificate verification. After enabling NTP, you should specify the time server that the gateway can access; When the intranet cannot access the public network, use the on-site intranet NTP server. The synchronization interval is measured in minutes, ranging from 1 to 1440.

System Control

Click "System Control" on the left. This module provides runtime reboot, application restart, and configuration database backup.

System Control Page

OperationsDescription
Restart the RuntimeRestart the GatewayRuntime runtime. A confirmation popup will appear before execution. Suitable for scenarios such as reloading the runtime after saving or restarting to recover abnormal collection.
Restart the softwareRestart the application. After execution, the web connection will be interrupted and you need to reconnect. Suitable for scenarios where the application itself is abnormal or system parameter adjustments require a full reboot.
Backup Configuration DatabaseDownload a coherent SQLite single-file snapshot containing WAL committed data that can be opened independently for configuring backups or delivering archives. For large-scale configuration, modify network parameters, adjust dual-machine hot standby, or back up before release, it is recommended.
Note:

Operations involving runtime or application restart may affect collection, data forwarding, and web connections. Please perform in the maintenance window.

PING Test

Click "PING Test" on the left. After entering the target address, you can set the number of tests and timeout, then click Start Test.

PING test page

parametersDescription
Destination addressIP address or domain name to be tested.
Number of tests:number of PING requests, ranging from 1 to 20.
TimeoutTimeout per request, ranging from 1000 to 30,000 milliseconds.
Start testingperform PING tests.
Clear resultsClear the current test results.

After testing, the page displays summary cards and packet-by-package tables.

ResultsExplain
Target hostsActual response target hosts.
Number of SuccessesNumber of Successful Responses.
Number of failuresNumber of times no response or errors occur.
Packet loss ratefailure rate.
Average latencyAverage round-trip time for successful requests.
Delay rangeMinimum and maximum round-trip times.
Packet-by-packet resultsStatus, response address, latency, TTL, and error messages for each request.

successful PING only indicates that the network layer is reachable and cannot prove that MQTT, OPC UA, database, or Webhook service ports are available. If ping succeeds but business connection fails, continue to check the destination port, firewall, account password, certificates, and protocol configuration.