Server and databases

Attention

Comply with the requirements for stable operation of the server, databases and system components. Failure to comply with the requirements may cause system instability.

Server requirements

The power of the processor, the amount of RAM and disks depends on the number of agents.

operating system

iBatyr Monitor server is supported by:

  • Ubuntu Server 18.04;

  • Ubuntu Server 20.04;

  • Ubuntu Server 22.04;

Warning

When updating the server operating system, due to the nature of PostgreSQL, database reindexing is required.

RAM and processor

Requirements for the x86/x64 architecture, taking into account the number of agents:

Agents

RAM

CPU

10

4

2

50

16

4

100

32

8

200

48

10

500

64

10

1000

96

14

Performance optimization

Starting with version 4.9, iBatyr Monitor has added a new data loading mechanism (ETL), which significantly reduces the processor load and allows for more efficient use of the disk subsystem.

It is not recommended to install additional resource-intensive services and applications on the server, except for the following:

  • Grafana is a load metrics analysis service that is installed by application service teams along with pre-installed metrics and metric collectors.

  • Zabbix is a third-party solution for analyzing load metrics.

  • Anti-virus software, with the exception of which you need add iBatyr Monitor services and its postgresql and ibatyr directories.

Database requirements

iBatyr Monitor supports:

  • Postgresql 11 and 15;

  • ClickHouse*.

Note: ClickHouse is an additional database to improve the speed of reporting. When installing iBatyr Monitor, the current version of ClickHouse is provided.

Use SSD to store databases. SSD provide fast access to the database due to high read-write speeds. Files do not require speed, so they can be stored on HDD.

Note

If you use 10–50 workstations, there is no need to separate the database and file storage due to the small amount of data.

Disk for the main database and application server

For optimal storage performance:

  • use NVMe SSDs with speeds of at least 1500 MB/s,

  • provide IOPS of at least 5000 IOPS.

Attention

Placing databases on slow disks increases the risk of system instability.

With medium settings, each user generates about 350 MB of events per month.

It is recommended to place the data spooler buffer /var/lib/ibatyr/etl on a fast disk.

Database recommendations are listed below.

Agents

Month storage

3 months storage

12 months storage

10

34 GB (DB and FH)

101 GB (DB and FH)

402 GB (DB and FH)

50

170 GB (DB and FH)

502 GB (DB and FH)

2 TB (DB and FH)

100

35 GB

103 GB

411 GB

200

69 GB

206 GB

821 GB

500

171 GB

513 GB

2 TB

1000

342 GB

1.13 TB

4.1 TB

Disk for storing files

With average data collection settings, one user generates about 4 GB of files per month.

Data volumes are given for enabled security policies:

  • screen capture every 5 minutes;

  • changing focus on the Full HD screen - 5 min;

  • interception of correspondence in instant messengers and mail.

Additional recalculation is required when recording video screens and batch shots.

Agents

Month storage

3 months storage

12 months storage

10

34 GB (DB and FH)

101 GB (DB and FH)

402 GB (DB and FH)

50

170 GB (DB and FH)

502 GB (DB and FH)

2 TB (DB and FH)

100

300 GB

900 GB

3.6 TB

200

600 GB

1.8 TB

7.2 TB

500

1.5 TB

4.5 TB

18 TB

1000

4 TB

12 TB

36 TB

Disk for storing video files

Requirements are based on recording one Full HD screen during an eight-hour workday. Under other conditions, change the volumes.

Agents

Month storage

3 months storage

10

350 GB

1050 GB

50

1750 GB

5.2 TB

100

3.5 TB

10.5 TB

200

7 TB

21 TB

500

17.5 TB

52.5 TB

1000

35 TB

105 TB

Note

The total IOPS value must be at least 5000 operations.

ClickHouse Database

Auxiliary Database, which is designed to improve the speed of loading data in the server web console. Retrieves data from the main database.

Use ClickHouse if you:

  • more than 100 users,

  • data storage period is more than 3 months.

The database volume is calculated in the ratio of 40–50% of the data volumes of the main database.

Agents

RAM

Month storage

3 months storage

12 months storage

100

10 GB

18 GB

54 GB

216 GB

200

12 GB

36 GB

108 GB

432 GB

500

14 GB

90 GB

270 GB

1080 GB

1000

16 GB

180 GB

540 GB

2160 GB

Note

To store data in ClickHouse, an NVMe disk with a read-write speed of 1500 MB/s and a total IOPS value of at least 5000 operations is required.

Recommendations for database administration

If the database exceeds 1 TB:

  1. Split data into hot and cold storage. Transfer some of the data to cold storage with secure access via a server address. The server web console will only display the selected database.

  2. Make database backups weekly. The server writes data to file storage; when creating a backup, it is recommended to make a copy of the files in file storage.

  3. Perform Auto Clean. Apply VACUUM and ANALYZE to the database every 2-3 months.

Selecting a server configuration

Links to specialized resources for selecting server equipment: