Re: Netplex issue with VServer PID namespace

Gerd Stolpmann <[email protected]> Mon, 01 Jun 2015 12:13:59 +0200
Newsgroups gmane.comp.lang.ocaml.lib.net.devel
Message-ID <[email protected]>
--===============3317805986538257462==
Content-Type: multipart/signed; micalg="pgp-sha1";
	protocol="application/pgp-signature"; 
	boundary="=-yvZSaZLwxhSk+my3D1ev"


--=-yvZSaZLwxhSk+my3D1ev
Content-Type: text/plain; charset="ISO-8859-15"
Content-Transfer-Encoding: quoted-printable

Am Montag, den 01.06.2015, 11:06 +0200 schrieb Thomas Calderon:
> Hi,
>=20
>=20
> We are observing an issue when using OCamlnet netplex in combination
> with VServer PID namespaces.
> We are using Netplex in the multi-process mode.
>=20
>=20
> Here is what we are doing:
>   - start our netplex controller
>     - use the post_add_hook to enter a new PID namespace
>   - use dynamic workload manager to spawn child workers
>     - configured with conn_limit=3D1
>=20
>=20
>   - launch a loop of client connections
>     - this spawns a new worker process for each connection
>=20
>=20
> After several successful connections of the loop, clients cannot
> connect anymore.
> We observe some worker processes in a defunct/zombie state.
> The controller and running worker processes seem deadlocked in some
> condition.
>=20
>=20
> When we do not use the post_add_hook to enter a new PID namespace, the
> problem cannot be triggered anymore.
>=20
>=20
> Do you have any hint on this?

The controller runs of course waitpid() on the terminated processes to
un-zombie these, and obviously this does not work. I guess you reach
then the maximum number of processes after some time.

You say "vServer" but there are several such technologies (Linux
containers, Virtuozzo, maybe some derived products). I also don't know
much about this corner of the OS.

What would definitely help is an strace -f of the server.

Gerd



>=20
>=20
> Many thanks.
>=20
>=20
> Thomas

--=20
------------------------------------------------------------
Gerd Stolpmann, Darmstadt, Germany    [email protected]
My OCaml site:          http://www.camlcity.org
Contact details:        http://www.camlcity.org/contact.html
Company homepage:       http://www.gerd-stolpmann.de
------------------------------------------------------------


--=-yvZSaZLwxhSk+my3D1ev
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: This is a digitally signed message part
Content-Transfer-Encoding: 7bit

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQEcBAABAgAGBQJVbDBnAAoJEAaM4b9ZLB5TJ2kH/i+0toORRvfIaneEpiyiwT5V
BrcvNKjy5iRysnOmyaT6QUECTzPvWzbWve0L0vzI/y5B7wEk7A2+G3D9Qwn/swJE
mPNFnpPYr6/LEgUqED7ZUV64C5689viP6Oay2KhkemISlxRXFTv0iL26XxZeRUk9
jYREFkyi+psll0Dnrzcv4+uFjux+Gx2Ux7tkTdVEZaFfzVfUYPKf2MGql9JukEn6
Ksbj/BWBzAgkKwiYQIXfOiP3gMxRexdV7r4TvzgOCHt6Ww83Wr3mFmr5CuHaQFrc
/vOBfBmWVAK1H6ZWAfimOUarkVhDnEn0mBxXJ+Er8x3WEnILrQbvyO2eKbT6EEQ=
=WbC2
-----END PGP SIGNATURE-----

--=-yvZSaZLwxhSk+my3D1ev--



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

------------------------------------------------------------------------------

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

_______________________________________________
Ocamlnet-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ocamlnet-devel

--===============3317805986538257462==--