Browse Source

better scalability

stefanocasazza 10 years ago
parent
commit
8a4b384667

+ 2 - 3
frameworks/C++/ULib/install.sh

@@ -42,11 +42,10 @@ if [ ! -f "benchmark.cfg" ]; then
 userver {
  PORT 8080
  PREFORK_CHILD 8
- LISTEN_BACKLOG 8192
- MAX_KEEP_ALIVE 8192
+ LISTEN_BACKLOG 16384
+ CLIENT_FOR_PARALLELIZATION 256
  ORM_DRIVER "mysql pgsql sqlite"
  DOCUMENT_ROOT $ULIB_DOCUMENT_ROOT
-#PID_FILE ${ULIB_ROOT}/userver_tcp.pid
 }
 EOF
 fi

+ 1 - 1
frameworks/C++/ULib/setup_mysql.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-export UMEMPOOL="545,0,0,37,8465,0,-17,-22,34"
+export UMEMPOOL="152,85,0,37,8315,105,-17,-22,40"
 export ORM_DRIVER="mysql"
 export ORM_OPTION="host=${DBHOST} user=benchmarkdbuser password=benchmarkdbpass character-set=utf8 dbname=hello_world"
 

+ 1 - 1
frameworks/C++/ULib/setup_postgres.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-export UMEMPOOL="545,0,0,37,8465,0,-17,-22,34"
+export UMEMPOOL="152,85,0,37,8315,105,-17,-22,40"
 export ORM_DRIVER="pgsql"
 export ORM_OPTION="host=${DBHOST} user=benchmarkdbuser password=benchmarkdbpass dbname=hello_world client_encoding=UTF8"
 

+ 1 - 1
frameworks/C++/ULib/setup_sqlite.sh

@@ -1,6 +1,6 @@
 #!/bin/bash
 
-export UMEMPOOL="545,0,0,37,8465,0,-17,-22,34"
+export UMEMPOOL="152,85,0,37,8315,105,-17,-22,40"
 export ORM_DRIVER="sqlite"
 export ORM_OPTION="host=${DBHOST} user=benchmarkdbuser password=benchmarkdbpass character-set=utf8 dbname=${ULIB_ROOT}/db/%.*s"