42 lines
836 B
Plaintext
42 lines
836 B
Plaintext
|==================================================|
|
||
|FIND VENV READING LOCATION AND OTHER INFO ABT VENV|
|
||
|==================================================|
|
||
which python
|
||
which pip
|
||
|
||
python --version
|
||
|
||
pip show psycopg2
|
||
pip show psycopg2-binary
|
||
|
||
pip freeze | grep psycopg
|
||
|
||
|
||
|
||
deactivate
|
||
|
||
source /home/george/Desktop/PROJECT26/psqlDB/venv/bin/activate
|
||
|
||
|
||
INSTALL IN DB, IF NOT DONE!!!
|
||
CREATE EXTENSION IF NOT EXISTS pg_stat_statements;
|
||
|
||
psutil.cpu_percent()
|
||
psutil.virtual_memory()
|
||
psutil.disk_usage()
|
||
|
||
const token = localStorage.getItem("token");
|
||
|
||
const socket = new WebSocket(
|
||
`ws://172.16.10.178:8000/ws/node/replication-health?token=${encodeURIComponent(token)}`
|
||
);
|
||
|
||
|
||
|
||
| Server size | Reasonable starting point |
|
||
|---|---:|
|
||
| 2–4 GB RAM | 50–100 |
|
||
| 8 GB RAM | 100–300 |
|
||
| 16 GB RAM | 200–500 |
|
||
| 32+ GB RAM | 300–1000+ |
|