You need to provide some classes and decorators yourself to maintain the same style as typeorm@2.x.
@EntityRepository(UserEntity)
export class UserRepository extends Repository<UserEntity> {}↓
| Name: Flash | |
| Serial: eNrzzU/OLi0odswsqnHLSSzOqDGoca7JKCkpsNLXLy8v1ytJTczVLUotKNFLzs8FAJHYETc= | |
| if anyone wants to thank ETH: 0x527c2aB55b744D6167dc981576318af96ed26676 | |
| Thank you! |
| check process mysql | |
| with pidfile /var/run/mysqld/mysqld.pid | |
| start program = "/usr/sbin/service mysql start" with timeout 60 seconds | |
| stop program = "/usr/sbin/service mysql stop" with timeout 60 seconds | |
| if totalmem > 400 MB for 5 cycles then alert | |
| if totalmem > 600 MB for 5 cycles then restart | |
| if cpu > 50% for 5 cycles then alert | |
| if cpu > 90% for 5 cycles then restart | |
| if 3 restarts within 5 cycles then timeout |
| check process elasticsearch with pidfile /var/run/elasticsearch.pid | |
| start program = "/etc/init.d/elasticsearch start" | |
| stop program = "/etc/init.d/elasticsearch stop" | |
| if 5 restarts within 5 cycles then timeout | |
| if failed host 127.0.0.1 port 9200 type http then restart |
| set daemon 30 with start delay 60 | |
| set logfile syslog facility log_daemon | |
| set httpd port 2812 | |
| allow localhost | |
| set mailserver localhost | |
| set alert alert@example.com but not on { instance } | |
| mail-format { | |
| From: noreply@example.com |
| check process redis-server | |
| with pidfile "/var/run/redis.pid" | |
| start program = "/etc/init.d/redis-server start" | |
| stop program = "/etc/init.d/redis-server stop" | |
| if 2 restarts within 3 cycles then timeout | |
| if totalmem > 100 Mb then alert | |
| if children > 255 for 5 cycles then stop | |
| if cpu usage > 95% for 3 cycles then restart | |
| if failed host 127.0.0.1 port 6379 then restart | |
| if 5 restarts within 5 cycles then timeout |
| # monit monitoring http://mmonit.com/monit/ | |
| # www.fduran.com | |
| apt-get update; apt-get install monit | |
| cp /etc/monit/monitrc /etc/monit/monitrc.orig | |
| # edit /etc/monit/monitrc see examples at http://mmonit.com/wiki/Monit/ConfigurationExamples | |
| # Respawn: |
| check process mongodb | |
| with pidfile "/var/lib/mongodb/mongod.lock" | |
| start program = "/sbin/start mongodb" | |
| stop program = "/sbin/stop mongodb" | |
| if failed port 28017 protocol http | |
| and request "/" with timeout 10 seconds then restart | |
| if 5 restarts within 5 cycles then timeout |
| ############################################################################### | |
| ## Monit control file | |
| ############################################################################### | |
| ## | |
| ## Comments begin with a '#' and extend through the end of the line. Keywords | |
| ## are case insensitive. All path's MUST BE FULLY QUALIFIED, starting with '/'. | |
| ## | |
| ## Below you will find examples of some frequently used statements. For | |
| ## information about the control file, a complete list of statements and | |
| ## options please have a look in the monit manual. |