get better profileo on worker process
Signed-off-by: Ava Hahn <a.hahn@f5.com>
This commit is contained in:
parent
78baa850a8
commit
4acd439e8a
6 changed files with 372 additions and 29 deletions
|
|
@ -1,7 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
N=$(nproc --all)
|
||||
for iter in {0..999}; do
|
||||
for iter in {0..79}; do
|
||||
((i=i%N)); ((i++==0)) && wait
|
||||
echo "minting cert $iter"
|
||||
openssl req -x509 \
|
||||
|
|
@ -13,13 +13,12 @@ for iter in {0..999}; do
|
|||
-subj "/C=XX/ST=StateName/L=CityName/O=CompanyName/OU=CompanySectionName/CN=kaproxy-$iter" &
|
||||
done
|
||||
|
||||
for iter in {0..999}; do
|
||||
upstr=$(($iter%10))
|
||||
for iter in {0..79}; do
|
||||
echo "
|
||||
location /$iter {
|
||||
proxy_ssl_certificate /cert$iter.pem;
|
||||
proxy_ssl_certificate_key /key$iter.pem;
|
||||
proxy_pass http://kasvc-$upstr:8080;
|
||||
proxy_pass https://kasvc-$iter:8080;
|
||||
}" >> /nginx.conf
|
||||
done
|
||||
|
||||
|
|
@ -27,3 +26,5 @@ echo '
|
|||
}
|
||||
}
|
||||
' >> /nginx.conf
|
||||
|
||||
wait
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
worker_processes 1;
|
||||
error_log /dev/stdout notice;
|
||||
error_log /dev/stdout debug;
|
||||
pid /tmp/pid;
|
||||
|
||||
# callgrind in worker processes must be able to do things
|
||||
|
|
@ -19,7 +19,7 @@ http {
|
|||
server_name www.example.com;
|
||||
ssl_certificate /www.example.com.crt;
|
||||
ssl_certificate_key /www.example.com.key;
|
||||
#ssl_certificate_cache max=1000;
|
||||
ssl_certificate_cache max=1000;
|
||||
ssl_session_cache shared:SSL:10m;
|
||||
access_log /tmp/access.log;
|
||||
proxy_socket_keepalive on;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue