Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CD-CODE Web
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
CD-CODE team
CD-CODE Web
Commits
55d25236
Commit
55d25236
authored
3 years ago
by
moon
Browse files
Options
Downloads
Patches
Plain Diff
Added mmonit/monit installation instruction for server monitoring
parent
d8a21cd6
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
dd-code-api/README.md
+43
-0
43 additions, 0 deletions
dd-code-api/README.md
with
43 additions
and
0 deletions
dd-code-api/README.md
+
43
−
0
View file @
55d25236
[[
_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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment