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
applications inside the same VM as Riak
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mike Oxford  
View profile  
 More options Sep 25 2012, 4:56 pm
From: Mike Oxford <moxf...@gmail.com>
Date: Tue, 25 Sep 2012 13:56:40 -0700
Local: Tues, Sep 25 2012 4:56 pm
Subject: applications inside the same VM as Riak

I am stacking my application and Riak on the same machine.
It seems wasteful to use 127.0.0.1 or even AF_UNIX sockets.  Is there
anything that precludes me from running it directly within the same VM as
Riak, to cut down/eliminate the impedance mismatch/marshalling of going
through the external client protocols like HTTP/Protobuf?
Instead of building on riak_core, I'd be building on Riak(_kv?) itself.

Here be dragons?

Thanks!

-mox

_______________________________________________
riak-users mailing list
riak-us...@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anthony Molinaro  
View profile  
 More options Sep 26 2012, 11:07 am
From: Anthony Molinaro <antho...@alumni.caltech.edu>
Date: Wed, 26 Sep 2012 08:05:48 -0700
Local: Wed, Sep 26 2012 11:05 am
Subject: Re: applications inside the same VM as Riak
I've been successfully running a monitoring application (to gather stats
from riak) inside of the riak application for over a year with no issues.

I also know of another company which uses the internal client because
of performance issues with the PB client, so its completely possible
to run an application inside riak.

The only issue I've ever run into was having to bounce riak when my
application needs to be updated (which is very infrequent in this case),
because I need to bounce riak.

For actual client applications of riak I've found a better pattern (even
if running on the same machine), is your app pointing to haproxy, haproxy
pointing to all the riak nodes.  You can configure haproxy to prefer the
local connection and only use the others as fall backs.  This way you
can perform a rolling restart of riak followed by a restart of haproxy,
or a restart of your client application, and never have any downtime.

-Anthony

--
------------------------------------------------------------------------
Anthony Molinaro                           <antho...@alumni.caltech.edu>

_______________________________________________
riak-users mailing list
riak-us...@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Kresten Krab Thorup  
View profile  
 More options Sep 26 2012, 12:08 pm
From: Kresten Krab Thorup <k...@trifork.com>
Date: Wed, 26 Sep 2012 18:08:06 +0200
Local: Wed, Sep 26 2012 12:08 pm
Subject: Re: applications inside the same VM as Riak
We're also running several applications inside riak; it's quite simple to just add relevant -pa and -s <app> arguments at the end of vm.args.

Kresten

On Sep 25, 2012, at 10:56 PM, Mike Oxford <moxf...@gmail.com<mailto:moxf...@gmail.com>> wrote:

I am stacking my application and Riak on the same machine.
It seems wasteful to use 127.0.0.1 or even AF_UNIX sockets.  Is there anything that precludes me from running it directly within the same VM as Riak, to cut down/eliminate the impedance mismatch/marshalling of going through the external client protocols like HTTP/Protobuf?
Instead of building on riak_core, I'd be building on Riak(_kv?) itself.

Here be dragons?

Thanks!

-mox
_______________________________________________
riak-users mailing list
riak-us...@lists.basho.com<mailto:riak-us...@lists.basho.com>
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

Mobile: + 45 2343 4626 | Skype: krestenkrabthorup | Twitter: @drkrab
Trifork A/S  |  Margrethepladsen 4  | DK- 8000 Aarhus C |  Phone : +45 8732 8787  |  www.trifork.com<http://www.trifork.com>

_______________________________________________
riak-users mailing list
riak-us...@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »