Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Using the OTP 'rpc' service (rex) under high load, was: Re: Load balancing/multiplexing rpc calls amongst Erlang Nodes

Received: by 10.204.148.22 with SMTP id n22mr2911758bkv.0.1351059904174;
        Tue, 23 Oct 2012 23:25:04 -0700 (PDT)
X-BeenThere: erlang-programming@googlegroups.com
Received: by 10.204.151.24 with SMTP id a24ls1622850bkw.1.gmail; Tue, 23 Oct
 2012 23:25:03 -0700 (PDT)
Received: by 10.205.123.145 with SMTP id gk17mr2906327bkc.2.1351059903715;
        Tue, 23 Oct 2012 23:25:03 -0700 (PDT)
Received: by 10.205.123.145 with SMTP id gk17mr2906326bkc.2.1351059903686;
        Tue, 23 Oct 2012 23:25:03 -0700 (PDT)
Return-Path: <erlang-questions-boun...@erlang.org>
Received: from hades.cslab.ericsson.net (hades.cslab.ericsson.net. [192.121.151.104])
        by gmr-mx.google.com with ESMTP id 27si1568238bks.3.2012.10.23.23.25.03;
        Tue, 23 Oct 2012 23:25:03 -0700 (PDT)
Received-SPF: pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) client-ip=192.121.151.104;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of erlang-questions-boun...@erlang.org designates 192.121.151.104 as permitted sender) smtp.mail=erlang-questions-boun...@erlang.org; dkim=neutral (body hash did not verify) header...@gmail.com
Received: from hades.cslab.ericsson.net (hades [192.121.151.104])
	by hades.cslab.ericsson.net (Postfix) with ESMTP id 2B2895C221;
	Wed, 24 Oct 2012 08:24:55 +0200 (CEST)
X-Original-To: erlang-questi...@erlang.org
Delivered-To: erlang-questi...@erlang.org
Received: from mail-ie0-f181.google.com (mail-ie0-f181.google.com
 [209.85.223.181])
 by hades.cslab.ericsson.net (Postfix) with ESMTP id 3EBEA5C026
 for <erlang-questi...@erlang.org>; Wed, 24 Oct 2012 08:24:52 +0200 (CEST)
Received: by mail-ie0-f181.google.com with SMTP id 16so207495iea.40
 for <erlang-questi...@erlang.org>; Tue, 23 Oct 2012 23:24:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:in-reply-to:references:date:message-id:subject:from:to
 :cc:content-type;
 bh=E8wZ3GHoseMXF8jj2rtOnyAbWW11zSU9xsPOirngcE4=;
 b=Z6oJ9AZFUz7jG8o+gphc7o/eDmZ1Vfr6hf7xa95joDKCX1uWcrhvfQKEGwELQ/V4KK
 la1wlCkb/N8W1jupwo2hqmzGpFiviWpHVKmH5UJF9YhZUh0j5Q1qKqLpLrygqDKhT21f
 Bu2CLLkvlJI/yxSVYwYi5vx69BBTQL2qyih23PvyypwgD4PsDLs1FsWHQMiEZ6+6hy+M
 T/W8/5Tvp/NpxS6siJ+lsqzY6ZukL8ekQQEMZX+xjs2Guz9K0P30W7h25mmu722SYwOd
 D7F8B1IidPDtw4iFDpOK1N7ti6+iSOnJ21kXuTV7BPQqxKg8L+9Lm+J4y/tpWNGGyz44
 2t6A==
MIME-Version: 1.0
Received: by 10.50.202.3 with SMTP id ke3mr1399400igc.65.1351059891560; Tue,
 23 Oct 2012 23:24:51 -0700 (PDT)
Received: by 10.64.107.67 with HTTP; Tue, 23 Oct 2012 23:24:51 -0700 (PDT)
In-Reply-To: <97234.1351053...@snookles.snookles.com>
References: <CAKLo-1sXbstkukLNZC1RYqDs4Qq=knyGAEw6_S0Y7bgwwnc...@mail.gmail.com>
 <97234.1351053...@snookles.snookles.com>
Date: Wed, 24 Oct 2012 09:24:51 +0300
Message-ID: <CAKLo-1tPwXn7bT6=PkSMxKpWaVWH6TEqwbXSBGYr9njX5yd...@mail.gmail.com>
From: Joshua Muzaaya <joshm...@gmail.com>
To: Scott Lystig Fritchie <fritc...@snookles.com>
Cc: erlang-questi...@erlang.org
Subject: Re: [erlang-questions] Using the OTP 'rpc' service (rex) under high
 load, was: Re:  Load balancing/multiplexing rpc calls amongst Erlang Nodes
X-BeenThere: erlang-questi...@erlang.org
X-Mailman-Version: 2.1.14
Precedence: list
List-Id: General Erlang/OTP discussions <erlang-questions.erlang.org>
List-Unsubscribe: <http://erlang.org/mailman/options/erlang-questions>,
 <mailto:erlang-questions-requ...@erlang.org?subject=unsubscribe>
List-Archive: <http://erlang.org/pipermail/erlang-questions>
List-Post: <mailto:erlang-questi...@erlang.org>
List-Help: <mailto:erlang-questions-requ...@erlang.org?subject=help>
List-Subscribe: <http://erlang.org/mailman/listinfo/erlang-questions>,
 <mailto:erlang-questions-requ...@erlang.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============8627228147272460145=="
Errors-To: erlang-questions-boun...@erlang.org
Sender: erlang-questions-boun...@erlang.org

--===============8627228147272460145==
Content-Type: multipart/alternative; boundary=f46d0447882de81f5204ccc82463

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

indeed, this so helpful of you. You have saved me alot of problems. I was
experiencing the same and thought that i was doing things the wrong way.
Thank you so much.

  <http://www.linkedin.com/pub/muzaaya-joshua/39/2ba/202>
Designed with WiseStamp -
<http://r1.wisestamp.com/r/landing?u=cf16262215eb8784&v=3.11.21&t=1351059836769&promo=10&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10>Get
yours<http://r1.wisestamp.com/r/landing?u=cf16262215eb8784&v=3.11.21&t=1351059836769&promo=10&dest=http%3A%2F%2Fwww.wisestamp.com%2Femail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10>



On Wed, Oct 24, 2012 at 7:33 AM, Scott Lystig Fritchie <
fritc...@snookles.com> wrote:

> Hi, Joshua.  One note of caution about the rpc service, or more
> specifically about the 'rex' gen_server that implements the server side
> of the client/server remote execution service.
>
> The 'rex' process is a single OTP gen_server and thus can use at most a
> single CPU core's worth of computation resource.  Experience with using
> rpc/rex with Riak has shown that certain workloads can easily overwhelm
> the rex server's ability to quickly execute requests from remote
> clients.  When possible, I'd recommend avoiding using the 'rpc' module
> and bypass 'rex' by spawn()/spawn_monitor()/spawn_link()'ing worker
> processes directly on a remote node.
>
> -Scott
>



-- 
*Muzaaya Joshua
Systems Engineer
+256774115170*
*"Through it all, i have learned to trust in Jesus. To depend upon His Word"
*

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

indeed, this so helpful of you. You have saved me alot of problems. I was e=
xperiencing the same and thought that i was doing things the wrong way. Tha=
nk you so much.<br><br><div id=3D"WISESTAMP_SIG_9901"><div style=3D"font-si=
ze:13.3px;font-family:Verdana,Arial,Helvetica,sans-serif">
<div style=3D"max-width:469px;padding:0.5em 0 0.5em">					<a href=3D"http:/=
/www.linkedin.com/pub/muzaaya-joshua/39/2ba/202" target=3D"_blank">						<i=
mg src=3D"https://s3.amazonaws.com/images.wisestamp.com/apps/buttons/linked=
inbutton_option_1.png" style=3D"border: none;" border=3D"0">					</a></div>
<div style=3D"border-top:1px solid #eeeeee;margin-top:17px;padding-top:2px;=
font-size:75%"><a style=3D"color:#6f6f6f;text-decoration:none" href=3D"http=
://r1.wisestamp.com/r/landing?u=3Dcf16262215eb8784&amp;v=3D3.11.21&amp;t=3D=
1351059836769&amp;promo=3D10&amp;dest=3Dhttp%3A%2F%2Fwww.wisestamp.com%2Fem=
ail-install%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3D=
promo_10"><span style=3D"color:#6f6f6f">Designed with WiseStamp - </span></=
a><a style=3D"color:#3f48cc;text-decoration:underline" href=3D"http://r1.wi=
sestamp.com/r/landing?u=3Dcf16262215eb8784&amp;v=3D3.11.21&amp;t=3D13510598=
36769&amp;promo=3D10&amp;dest=3Dhttp%3A%2F%2Fwww.wisestamp.com%2Femail-inst=
all%3Futm_source%3Dextension%26utm_medium%3Demail%26utm_campaign%3Dpromo_10=
"><span style=3D"color:#3f48cc">Get yours</span></a>=A0<img src=3D"http://s=
tatic.wisestamp.com/promo/promo.html/p.gif?u=3Dcf16262215eb8784&amp;v=3D3.1=
1.21&amp;t=3D1351059836769&amp;promo=3D10" width=3D"1" height=3D"1"></div>
<img src=3D"https://wisestamp.appspot.com/pixel.png?p=3Dmozilla&amp;v=3D3.1=
1.21&amp;t=3D1351059836769&amp;u=3Dcf16262215eb8784" width=3D"1" height=3D"=
1"></div></div><br><br><div class=3D"gmail_quote">On Wed, Oct 24, 2012 at 7=
:33 AM, Scott Lystig Fritchie <span dir=3D"ltr">&lt;<a href=3D"mailto:fritc=
h...@snookles.com" target=3D"_blank">fritc...@snookles.com</a>&gt;</span> wr=
ote:<br>
<blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1p=
x #ccc solid;padding-left:1ex">Hi, Joshua. =A0One note of caution about the=
 rpc service, or more<br>
specifically about the &#39;rex&#39; gen_server that implements the server =
side<br>
of the client/server remote execution service.<br>
<br>
The &#39;rex&#39; process is a single OTP gen_server and thus can use at mo=
st a<br>
single CPU core&#39;s worth of computation resource. =A0Experience with usi=
ng<br>
rpc/rex with Riak has shown that certain workloads can easily overwhelm<br>
the rex server&#39;s ability to quickly execute requests from remote<br>
clients. =A0When possible, I&#39;d recommend avoiding using the &#39;rpc&#3=
9; module<br>
and bypass &#39;rex&#39; by spawn()/spawn_monitor()/spawn_link()&#39;ing wo=
rker<br>
processes directly on a remote node.<br>
<span class=3D"HOEnZb"><font color=3D"#888888"><br>
-Scott<br>
</font></span></blockquote></div><br><br clear=3D"all"><br>-- <br>*Muzaaya =
Joshua<br>Systems Engineer<br>+256774115170*<br>*&quot;Through it all, i ha=
ve learned to trust in Jesus. To depend upon His Word&quot;<br>*<br><br>
<br><br>

--f46d0447882de81f5204ccc82463--

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

_______________________________________________
erlang-questions mailing list
erlang-questi...@erlang.org
http://erlang.org/mailman/listinfo/erlang-questions

--===============8627228147272460145==--