Prerequisites for 25 concurrent users 1:
- 2 CPU 2
- 8GB RAM
Prerequisites for 200 competing users 1:
- 8 CPU 2
- 12GB RAM
|RAM||CPU2||Competing users 1||Nb Products/Projects|
- 1 system disk of 15 GB which include / and swap partitions
- 1 data disk of 50 GB whose volume depends mainly on the documents
Associated with the products, we can decompose the space used for 1,000 products as follows:
- Database space: about 2 GB
- Space for full text search index: about 2 GB
- Space for related documents: 10 GB (1,000 products * 10 MB)
1. With these metrics, N concurrent users are considered 10xN occasional users. ↩
2. 2 CPUs are equivalent to 1 dual-core ↩
beCPG is distributed as a docker container allowing it to run on any server. beCPG provides automatic installation and full support for the installation of containers in the following environment Ubuntu Server >= 20.04.4 LTS 64 bits.3
Ubuntu Server 20.04 LTS 64 bits can be installed on a virtualized, dedicated or cloud server.
Download address for ISO images: [https://www.ubuntu.com/download/server]
3. beCPG can also be deployed on a kupernete environment like Amazon EKS, Google cloud or other. However, this will not be the subject of this documentation. ↩
The rest of the documentation is based on the use of a Linux Ubuntu >= 20.04.4 LTS 64 bits virtual machine .
Installation Tutorial: https://tutorials.ubuntu.com/tutorial/tutorial-install-ubuntu-server
Prerequisite client item
A post able to run a modern browser such as Firefox, a PDF reader and a suite office.
- 1 CPU
- 1 GB of RAM
- Temporary storage space when editing documents (space took by documents in edition)
beCPG provides an installation script that can be used and adapted as needed.
chmod + x install_docker_ubuntu_3_2_3.sh ./install_docker_ubuntu_3_2_3.sh
Once executed, the following software components will be installed on the virtual machine:
On the host machine, under /opt/becpg-srv-instances , you will find the installation folder of beCPG. The important files are:
/opt/becpg-srv-instances/inst1/.env /opt/becpg-srv-instances/inst1/README.md /opt/becpg-srv-instances/inst1/docker-compose.override.yml /opt/becpg-srv-instances/inst1/docker-compose.yml /opt/becpg-srv-instances/inst1/purge-logs.sh /opt/becpg-srv-instances/inst1/ssl/000-default.conf /opt/becpg-srv-instances/inst1/taillogs.sh /opt/becpg-srv-instances/inst1/reindex.sh /opt/becpg-srv-instances/inst1/stats.sh
By default, beCPG creates a new partition on the data disk. This partition contains all the data of the application, the containers and the docker volumes.
The mount point is /mnt/becpg-data by default
Sample script to create the new data partition on disk /dev/sdb
mkdir /mnt/becpg-data mkfs.ext4 /dev/sdb echo "/dev/sdb/mnt/becpg-data ext4 rw, noatime, errors = remount-ro, x-systemd.automount, x-initrd.mount 0 1" >> /etc/fstab mount -a
Deploy a new version of beCPG
cd/opt/becpg-srv-instances/inst1 docker-compound pull docker-compose up -d