Running multiple SSL servers on same machine

Alberto Klocker <alberto.klocker-A5pq3itJMno0n/[email protected]> Wed, 5 Mar 2014 15:05:12 +1100
Newsgroups gmane.comp.web.web-polygraph.user
Message-ID <CAP7CNSXMRNjF-o-W_hM3UGHAz+QhmfoKt1XL-_LeXu3HZsNmRw@mail.gmail.com>
--===============0092606153==
Content-Type: multipart/alternative; boundary=e89a8f23482fc7b92104f3d4216f

--e89a8f23482fc7b92104f3d4216f
Content-Type: text/plain; charset=ISO-8859-1

Hi,

I've been using tasksets as recommended to run multiple instances of the
polygraph-server on a single machine with great results. However when it
comes to using SSL on the servers I seem to be hitting a wall.

Some of my server processes with SSL peak at 100% CPU usage under high load
tests. If I use tasksets to spread out across cores I find I start getting
errors because when starting up they create the .pem files in /tmp/ with
the same names.

ie all servers create files in /tmp
named poly-1b5ac501-cert.srl,poly-557ac53b-serverkey.pem
 poly-6401b68e-serverkey.pem etc

Initially they all used the same myssl.conf file from your example in the
docs. I tried placing these in different directories with different
configurations but the files seem to always have the same name. Any
thoughts on how I can get multiple SSL servers running on one machine?



*Alberto Klocker* | Software Developer | www.bluereef.com.au
*_________________________________________________________________*
*D: *+61 3 9895 8006 | *T*: +61 3 9898 8000 | @AlbertoKlocker
 Please consider the environment before printing this email

--e89a8f23482fc7b92104f3d4216f
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi,</div><div><br></div><div>I&#39;ve been using task=
sets as recommended to run multiple instances of the polygraph-server on a =
single machine with great results. However when it comes to using SSL on th=
e servers I seem to be hitting a wall.</div>

<div><br></div><div>Some of my server processes with SSL peak at 100% CPU u=
sage under high load tests. If I use tasksets to spread out across cores I =
find I start getting errors because when starting up they create the .pem f=
iles in /tmp/ with the same names.</div>

<div><br></div><div>ie all servers create files in /tmp named=A0poly-1b5ac5=
01-cert.srl,poly-557ac53b-serverkey.pem =A0 =A0poly-6401b68e-serverkey.pem =
etc=A0</div><div><br></div><div>Initially they all used the same myssl.conf=
 file from your example in the docs. I tried placing these in different dir=
ectories with different configurations but the files seem to always have th=
e same name. Any thoughts on how I can get multiple SSL servers running on =
one machine?</div>

<div><br></div><div><br></div><br clear=3D"all"><div><div dir=3D"ltr"><span=
 style=3D"background-color:rgb(255,255,255);border-collapse:separate;color:=
rgb(34,34,34);font-size:medium;font-family:Helvetica"><div style=3D"word-wr=
ap:break-word">

<span style=3D"border-collapse:separate"><div style=3D"word-wrap:break-word=
"><span style=3D"border-collapse:separate"><div style=3D"margin:0cm 0cm 0.0=
001pt;font-size:11pt;font-family:Calibri,sans-serif"><span lang=3D"EN-US" s=
tyle=3D"font-size:8pt;font-family:Verdana,sans-serif;color:rgb(54,95,145)">=
<b>Alberto Klocker</b>=A0| Software Developer</span><span style=3D"font-siz=
e:8pt;font-family:Verdana,sans-serif;color:rgb(54,95,145)">=A0|=A0</span><s=
pan lang=3D"EN-US"><a href=3D"http://www.bluereef.com.au/" style=3D"color:b=
lue" target=3D"_blank"><span lang=3D"EN-AU" style=3D"font-size:8pt;font-fam=
ily:Verdana,sans-serif;color:rgb(54,95,145);text-decoration:none">www.bluer=
eef.com.au</span></a></span><span lang=3D"EN-US" style=3D"font-size:8pt;col=
or:rgb(54,95,145)">=A0</span><span style=3D"font-size:8pt;color:rgb(54,95,1=
45)"></span></div>

<div style=3D"margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sa=
ns-serif"><u><span style=3D"font-size:8pt;color:rgb(54,95,145)">___________=
______________________________________________________</span></u></div></sp=
an></div>

</span></div></span><span style=3D"background-color:rgb(255,255,255);color:=
rgb(34,34,34);font-size:15px;font-family:Calibri,sans-serif"><span lang=3D"=
EN-US" style=3D"font-size:8pt;font-family:Verdana,sans-serif;color:rgb(54,9=
5,145)"><b>D:=A0</b><a value=3D"+61398958020" style=3D"color:rgb(17,85,204)=
">+61 3 9895 8006</a>=A0|=A0</span></span><span style=3D"background-color:r=
gb(255,255,255);border-collapse:separate;color:rgb(34,34,34);font-size:medi=
um;font-family:Helvetica"><span style=3D"font-size:15px;font-family:Calibri=
,sans-serif"><b><span lang=3D"EN-US" style=3D"font-size:8pt;font-family:Ver=
dana,sans-serif;color:rgb(54,95,145)">T</span></b></span><span style=3D"fon=
t-size:15px;font-family:Calibri,sans-serif"><span style=3D"font-size:8pt;fo=
nt-family:Verdana,sans-serif;color:rgb(54,95,145)">:=A0<a value=3D"+6139898=
8000" style=3D"color:rgb(17,85,204)">+61 3 9898 8000</a>=A0</span></span><s=
pan style=3D"font-size:15px;font-family:Calibri,sans-serif"><span style=3D"=
font-size:8pt;font-family:Verdana,sans-serif;color:rgb(54,95,145)">|=A0</sp=
an></span><a value=3D"+61398988000" style=3D"font-family:Verdana,sans-serif=
;font-size:11px;color:rgb(17,85,204)">@AlbertoKlocker</a><div style=3D"word=
-wrap:break-word">

<span style=3D"border-collapse:separate"><div style=3D"word-wrap:break-word=
"><span style=3D"border-collapse:separate"><span style=3D"border-collapse:s=
eparate"><span style=3D"font-family:&#39;Lucida Grande&#39;"><div style=3D"=
margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:&#39;Times New Roman&#39=
;,serif">

<span style=3D"border-collapse:separate;font-size:medium;font-family:Calibr=
i"><span style=3D"font-family:&#39;Times New Roman&#39;,serif;font-size:16p=
x"><span style=3D"border-collapse:separate;font-size:medium;font-family:Cal=
ibri"><div style=3D"margin:0cm 0cm 0.0001pt;font-size:12pt;font-family:&#39=
;Times New Roman&#39;,serif">

<span lang=3D"EN-US" style=3D"font-size:8pt;font-family:Verdana,sans-serif;=
color:rgb(30,147,102)">Please consider the environment before printing this=
 email</span></div></span></span></span></div></span></span></span></div></=
span></div>

</span></div></div>
</div>

--e89a8f23482fc7b92104f3d4216f--

--===============0092606153==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Users mailing list
Users-mN9fGWdlm5pku/f+YMZH/di2O/[email protected]
http://www.web-polygraph.org/mailman/listinfo/users

--===============0092606153==--