Skip to content
Snippets Groups Projects
Commit 55d25236 authored by moon's avatar moon
Browse files

Added mmonit/monit installation instruction for server monitoring

parent d8a21cd6
No related branches found
No related tags found
No related merge requests found
[[_TOC_]]
## Installation dd-code server
### 1. Installation procedure
1. delete any dd_venv folder
......@@ -57,6 +59,47 @@ Daily Backups should be enabled, and the backup data are located in ```/local/wi
To develop REST API accessed to wiki.js, use the graphql playground.
* http://ddcode-srv1:3000/graphql
## Installation mmonit/monit for monitoring the server
1. Install monit(agent) and mmonit(web server) from https://mmonit.com/monit/ and https://mmonit.com/download/ respectively
2. Edit monit/conf/monitrc and copy ~/.monitrc to configure the communication with mmonit
```bash
## Check the apache server process
check process apache with pidfile /var/run/httpd/httpd.pid
if cpu > 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then alert
if totalmem > 200.0 MB for 5 cycles then alert
if children > 250 then alert
if disk read > 500 kb/s for 10 cycles then alert
if disk write > 500 kb/s for 10 cycles then alert
if 3 restarts within 5 cycles then unmonitor
group server
## Check the shiny server process
check process shiny with pidfile /var/run/shiny-server/shiny-server.pid
if cpu > 60% for 2 cycles then alert
if cpu > 80% for 5 cycles then alert
if totalmem > 2000.0 MB for 5 cycles then alert
if children > 250 then alert
if disk read > 500 kb/s for 10 cycles then alert
if disk write > 500 kb/s for 10 cycles then alert
if 3 restarts within 5 cycles then unmonitor
group server
```
3. Edit mmonit/conf/server.xml to communicate with in the localhost
```bash
<Connector address="localhost" port="8080" processors="10" /> # For only local communication
<Connector address="*" port="8080" processors="10" /> # For all users in public
```
4. Run mmonit and monit
```bash
mmonit start
monit start
```
## Make static condensate fields in protein collection
```shell
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment