This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Choose how the process manager will control the number of child processes. | |
; Possible Values: | |
; static - a fixed number (pm.max_children) of child processes; | |
; dynamic - the number of child processes are set dynamically based on the | |
; following directives. With this process management, there will be | |
; always at least 1 children. | |
; pm.max_children - the maximum number of children that can | |
; be alive at the same time. | |
; pm.start_servers - the number of children created on startup. | |
; pm.min_spare_servers - the minimum number of children in 'idle' |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:8080> | |
ServerAdmin info@openthinklabs.com | |
ServerName scanadmin.np | |
WSGIScriptAlias / /opt/www/scanadmin/scanadmin/wsgi.py | |
# Serve static files: | |
DocumentRoot /opt/www/scanadmin/ODKScan_webapp | |
Alias /static/admin /opt/www/scanadmin/venv/lib/python2.7/site-packages/django/contrib/admin/static/admin | |
<Directory "opt/www/scanadmin/venv/lib/python2.7/site-packages/django/contrib/admin/static/admin"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[mysqld] | |
# Only allow connections from localhost | |
bind-address = 127.0.0.1 | |
socket = /tmp/mysql.sock | |
connect_timeout = 10 | |
sql_mode=ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION | |
default_authentication_plugin=mysql_native_password | |
secure-file-priv = "" | |
innodb_log_file_size = 200M | |
innodb_log_buffer_size = 16M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mysql> show engine innodb status\G | |
*************************** 1. row *************************** | |
Type: InnoDB | |
Name: | |
Status: | |
===================================== | |
2019-07-27 21:10:11 0x7f16345a0700 INNODB MONITOR OUTPUT | |
===================================== | |
Per second averages calculated from the last 33 seconds | |
----------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
server_name alisjk.np; | |
root /opt/webapps/alisjk/web; | |
access_log /var/log/nginx/alisjk/access.log; | |
error_log /var/log/nginx/alisjk/error.log; | |
fastcgi_read_timeout 3000s; | |
location / { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:indexer] | |
environment = LC_ALL=en_US.UTF-8,LANG=en_US.UTF-8 | |
command = /path/to/banksoal/elasticsearch/envosx/bin/python indexer.py | |
directory = /path/to/banksoal/elasticsearch | |
user = fulan | |
autostart = false | |
stdout_logfile=/Library/Logs/supervisor/indexer_stdout.log ; stdout log path, NONE for none; default AUTO | |
stdout_logfile_maxbytes=1MB ; max # logfile bytes b4 rotation (default 50MB) | |
stdout_logfile_backups=10 ; # of stdout logfile backups (0 means none, default 10) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:searchapi] | |
environment = LC_ALL=en_US.UTF-8,LANG=en_US.UTF-8 | |
command = /path/to/banksoal/elasticsearch/envosx/bin/gunicorn -b 0.0.0.0:8000 -w 4 searchapi:app | |
directory = /path/to/banksoal/elasticsearch | |
user = fulan | |
autostart = false | |
;numprocs=1 ; number of processes copies to start (def 1) | |
;umask=022 ; umask for process (default None) | |
;priority=999 ; the relative start priority (default 999) | |
;startsecs=1 ; # of secs prog must stay up to |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[program:elasticsearch] | |
command = /path/to/banksoal/elasticsearch/elasticsearch-5.6.3/bin/elasticsearch | |
directory = /path/to/banksoal/elasticsearch | |
user = fulan | |
autostart = false | |
environment = ES_JAVA_OPTS="-Xms2g -Xms2g -Djava.net.preferIPv4Stack=true" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; Sample supervisor config file. | |
; | |
; For more information on the config file, please see: | |
; http://supervisord.org/configuration.html | |
; | |
; Notes: | |
; - Shell expansion ("~" or "$HOME") is not supported. Environment | |
; variables can be expanded using this syntax: "%(ENV_HOME)s". | |
; - Quotes around values are not supported, except in the case of | |
; the environment= options as shown below. |