Bläddra i källkod

weppy updates

Giovanni Barillari 8 år sedan
förälder
incheckning
fd73fd5978

+ 2 - 2
frameworks/Python/weppy/app.py

@@ -52,8 +52,8 @@ class Fortune(Model):
         return {'id': row.id, 'message': row.message}
 
 
-app.config.db.adapter = 'postgres3:psycopg2' \
-    if not _is_pypy else 'postgres3:pg8000'
+app.config.db.adapter = 'postgres:psycopg2' \
+    if not _is_pypy else 'postgres:pg8000'
 app.config.db.host = DBHOSTNAME
 app.config.db.user = 'benchmarkdbuser'
 app.config.db.password = 'benchmarkdbpass'

+ 2 - 2
frameworks/Python/weppy/nginx.conf

@@ -37,11 +37,11 @@ http {
         # http://nginx.org/en/docs/http/ngx_http_core_module.html#listen
         # http://www.techrepublic.com/article/take-advantage-of-tcp-ip-options-to-optimize-data-transmission/
         # The backlog argument to listen() is set to match net.ipv4.tcp_max_syn_backlog and net.core.somaxconn
-        listen       8080 default_server deferred backlog=65535;
+        listen       8080 default_server deferred reuseport backlog=65535;
         server_name  localhost;
 
         location / {
-            uwsgi_pass unix:/tmp/uwsgi.sock;
+            uwsgi_pass unix:/var/tmp/uwsgi.sock;
             include /usr/local/nginx/conf/uwsgi_params;
         }
     }

+ 1 - 1
frameworks/Python/weppy/requirements-pypy.txt

@@ -1,4 +1,4 @@
 pg8000==1.10.6
-weppy==0.8.1
+weppy==0.8.4
 gunicorn==19.4.5
 tornado==4.3

+ 1 - 1
frameworks/Python/weppy/requirements.txt

@@ -1,5 +1,5 @@
 psycopg2==2.6.1
-weppy==0.8.1
+weppy==0.8.4
 gunicorn==19.4.5
 meinheld==0.5.9
 uwsgi==2.0.12

+ 2 - 2
frameworks/Python/weppy/uwsgi.ini

@@ -6,7 +6,7 @@ listen = 16384
 ; for performance
 disable-logging
 ; use UNIX sockets instead of TCP loopback for performance
-socket = /tmp/uwsgi.sock
+socket = /var/tmp/uwsgi.sock
 ; allow nginx to access the UNIX socket
 chmod-socket = 666
 ; Avoid thundering herd problem http://uwsgi-docs.readthedocs.org/en/latest/articles/SerializingAccept.html .
@@ -16,4 +16,4 @@ chmod-socket = 666
 ; disabling this caused bottle to get ~13% faster.
 ;thunder-lock
 ; used by uwsgi_stop.ini
-pidfile = /tmp/uwsgi.pid
+pidfile = /var/tmp/uwsgi.pid