Windows Support

2014-02-02 Thread markrthomas
Hello

Why is there no Windows Support for Riak - at least a development version?
It would be useful to run standalone. What are my options?

Thanks

Mark



--
View this message in context: 
http://riak-users.197444.n3.nabble.com/Windows-Support-tp4030410.html
Sent from the Riak Users mailing list archive at Nabble.com.

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


spring-data-riak

2014-02-02 Thread markrthomas
Hello

Is the spring-data-riak project still an active project? It doesn't appear
to use protocol buffers.

It appears to have been superseded by the java-riak-client.

Thanks

Mark



--
View this message in context: 
http://riak-users.197444.n3.nabble.com/spring-data-riak-tp4030411.html
Sent from the Riak Users mailing list archive at Nabble.com.

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


Spring and java-riak-client questions

2014-02-02 Thread markrthomas
Hello

1) Has anyone had any success with integrating the java-riak-client with
Spring?

2) How do you use the 'com.basho.riak.pbc.RiakConnectionPool' with Spring?
Is it required if you're using nginx TCP load balancing. I'm confused in how
to use load-balancing with connection-pooling. What is considered best
practice?

3) How do you ensure that a connection is correctly shutdown()?

4) Is a 'com.basho.riak.client.bucket.Bucket' thread-safe or should I fetch
a Bucket per request?

5) Why does the java-riak-client (1.4.4) not support Riak Search? Should I
use 'spring-data-solr' - has anyone had any succcess with integrating this
project with Riak?

Thanks

Mark







--
View this message in context: 
http://riak-users.197444.n3.nabble.com/Spring-and-java-riak-client-questions-tp4030412.html
Sent from the Riak Users mailing list archive at Nabble.com.

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


mongoimport and java-riak-client

2014-02-02 Thread markrthomas
Hello

mongoimport is blazingly fast compared with my java-riak-client inspired
groovy load script (using pb). I'm just trying to import JSON data for a
small dataset. There's just no comparison. It would be handy if Riak came
with an equivalent 'riakimport' tool.



Thanks

Mark



--
View this message in context: 
http://riak-users.197444.n3.nabble.com/mongoimport-and-java-riak-client-tp4030413.html
Sent from the Riak Users mailing list archive at Nabble.com.

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


Load balancer

2014-02-02 Thread markrthomas
Hello

Any node in a Riak cluster can coordinate requests for any other Riak node
that is responsible for the data you're reading/writing.

What is the advantage of fronting a Riak cluster with a load-balancer?

Thanks

Mark




--
View this message in context: 
http://riak-users.197444.n3.nabble.com/Load-balancer-tp4030414.html
Sent from the Riak Users mailing list archive at Nabble.com.

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


Re: Load balancer

2014-02-02 Thread Luke Bakken
Hi Mark,

A load balancer will ensure that requests from your clients don't
prefer one Riak node over another. Some official Riak clients can do
their own load balancing, however, a dedicated load balancer is more
flexible.
--
Luke Bakken
CSE
lbak...@basho.com


On Sun, Feb 2, 2014 at 8:18 AM, markrthomas  wrote:
> Hello
>
> Any node in a Riak cluster can coordinate requests for any other Riak node
> that is responsible for the data you're reading/writing.
>
> What is the advantage of fronting a Riak cluster with a load-balancer?
>
> Thanks
>
> Mark
>
>
>
>
> --
> View this message in context: 
> http://riak-users.197444.n3.nabble.com/Load-balancer-tp4030414.html
> Sent from the Riak Users mailing list archive at Nabble.com.
>
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

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


Re: Windows Support

2014-02-02 Thread Luke Bakken
Hi Mark,

All of the supporting programs and scripts for Riak depend on the
presence of a POSIX shell which precludes using Windows.

Riak runs well in a VM environment for development purposes. I would
recommend using VirtualBox with vagrant to automate building a local
Riak environment:

https://github.com/hectcastro/vagrant-riak-cluster
--
Luke Bakken
CSE
lbak...@basho.com


On Sun, Feb 2, 2014 at 1:43 AM, markrthomas  wrote:
> Hello
>
> Why is there no Windows Support for Riak - at least a development version?
> It would be useful to run standalone. What are my options?
>
> Thanks
>
> Mark
>
>
>
> --
> View this message in context: 
> http://riak-users.197444.n3.nabble.com/Windows-Support-tp4030410.html
> Sent from the Riak Users mailing list archive at Nabble.com.
>
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

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


Re: Load balancer

2014-02-02 Thread Roberto Aloi
Hi Mark,

an obvious advantage of having a load balancer in front of your Riak
cluster is that you will not need to expose your individual Riak nodes
directly to the clients. Also, a load balancer will save you from a Single
Point of Failure (in case the clients are aware of a single Riak node) or
from the need to implement some round-robin or retry strategy in the
clients themselves (should the clients be aware of multiple nodes). In a
Riak cluster, nodes can disappear and come back. You could instruct your
load balancer to automatically remove Riak nodes which are not responding
to its pings. Finally, consider that - under certain scenarios - being a
coordinator still requires a decent amount of work to do. As an example,
during a map-reduce job a coordinator might be responsible not only for
routing requests to other nodes, but also for aggregating partial results
and for eventually running a reduce phase over the results.


Hope this helps.

Roberto Aloi
@robertoaloi


On Sun, Feb 2, 2014 at 5:18 PM, markrthomas  wrote:

> Hello
>
> Any node in a Riak cluster can coordinate requests for any other Riak node
> that is responsible for the data you're reading/writing.
>
> What is the advantage of fronting a Riak cluster with a load-balancer?
>
> Thanks
>
> Mark
>
>
>
>
> --
> View this message in context:
> http://riak-users.197444.n3.nabble.com/Load-balancer-tp4030414.html
> Sent from the Riak Users mailing list archive at Nabble.com.
>
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>



-- 
Roberto Aloi
---
Website: http://roberto-aloi.com
Twitter: @robertoaloi
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Returning after long period to old project to notice riak-cs stopped working

2014-02-02 Thread De Bunge
Initially it looked like some access rights issue
so I've updated /etc/riak-cs/app.config
and /etc/stanchion/app.config
with my admin's keys so I could use s3-cmd to figure out why some users
lost access to database.

but now it fails to start (see below).
riak-cs starts only after machine being rebooted, and fails first time
then I try to manipulate files with boto.

riak-cs console
Node 'riak-cs@127.0.0.1' not responding to pings.
config is OK
Exec: /usr/lib/riak-cs/erts-5.9.1/bin/erlexec -boot
/usr/lib/riak-cs/releases/1.3.1/riak-cs -embedded -config
/etc/riak-cs/app.config -pa
/usr/lib/riak-cs/lib/basho-patches -args_file
/etc/riak-cs/vm.args -- console
Root: /usr/lib/riak-cs
Erlang R15B01 (erts-5.9.1) [source] [64-bit] [smp:4:4]
[async-threads:64] [kernel-poll:true]

opening log file: "/var/log/riak-cs/access.log.2014_01_29_23"
00:45:05.232 [info] Application lager started on node 'riak-cs@127.0.0.1'
00:45:05.233 [info] Application poolboy started on node 'riak-cs@127.0.0.1'
00:45:05.253 [info] Application folsom started on node 'riak-cs@127.0.0.1'
Eshell V5.9.1  (abort with ^G)
(riak-cs@127.0.0.1)1> 00:45:05.330 [error] CRASH REPORT Process
<0.129.0> with 0 neighbours exited with reason: {tcp,econnrefused} in
gen_server:init_it/6 line 320
/usr/lib/riak-cs/lib/os_mon-2.2.9/priv/bin/memsup: Erlang has closed.
 
Erlang has closed

  
{"Kernel pid
terminated",application_controller,"{application_start_failure,riak_cs,{shutdown,{riak_cs_app,start,[normal,[]]}}}"}
Kernel pid terminated (application_controller)
({application_start_failure,riak_cs,{shutdown,{riak_cs_app,start,[normal,[]]}}})


Here are my config files:


cat /etc/riak-cs/app.config
%% -*- tab-width: 4;erlang-indent-level: 4;indent-tabs-mode: nil -*-
%% ex: ts=4 sw=4 et
[
 %% Riak CS configuration
 {riak_cs, [
  %% == Basic Configuration ==

  %% Riak CS http/https port and IP address to listen at
  %% for object storage activity
  {cs_ip, "0.0.0.0"},
  {cs_port, 8080 } ,

  %% Riak node to which Riak CS accesses
  {riak_ip, "127.0.0.1"},
  {riak_pb_port, 8087 } ,

  %% Configuration for access to request
  %% serialization service
  {stanchion_ip, "127.0.0.1"},
  {stanchion_port, 8085 },
  {stanchion_ssl, false },

  %% Enable this to allow the creation of an admin user
  %% when setting up a system. It is recommended to only
  %% enable this temporarily unless your use-case
  %% specifically dictates letting anonymous users to
  %% create accounts.
  {anonymous_user_creation, true},

  %% Admin user credentials. Admin access like
  %% /riak-cs/stats requires this entry to be set
  %% properly. The credentials specified here must match
  %% the admin credentials specified in the stanchion
  %% app.config for the system to function properly.
  {admin_key, "JRG1FHSN-LR27WQGBD1G"},
  {admin_secret, "n7rjS9rdXvMa6ji5BPaiw5NBK9yB2V6J_J2gow=="},

  %% Port and IP address to listen on for system
  %% administration tasks. Uncomment the following lines
  %% to use a separate IP and port for administrative
  %% API calls.
  %% {admin_ip, "0.0.0.0"},
  %% {admin_port, 8887 } ,

  %% If SSL needed, un-comment. Without SSL
  %% section, CS will be accessible via http.
  %% {ssl, [
  %%{certfile, "./etc/cert.pem"},
  %%{keyfile, "./etc/key.pem"}
  %%   ]},

  %% Root host name which Riak CS accepts.
  %% Your CS bucket at s3.example.com will be accessible
  %% via URL like http://bucket.s3.example.com/object/name
  {cs_root_host, "s3.amazonaws.com"},

  %% Connection pools
  %% Each pool is specified as a nested
  %% tuple of {Name, {FixedSize, OverflowSize}}
  {connection_pools,
   [
{request_pool, {128, 0} },
{bucket_list_pool, {5, 0} }
   ]},

  %% == Rolling upgrade support ==

  %% Riak CS version number. This is used to selectively
  %% enable new features for the current version to better
  %% support rolling upgrades. New installs should not
  %% need to modify this. If peforming a rolling upgrade
  %% then set this value to 0 until all nodes have been
  %% upgraded and then set back to the original value.
  {cs_version, 10300 },

  %% == U

Re: Load balancer

2014-02-02 Thread Gideon de Kok
Mark,

Your throughput of your total cluster will still be dependent on the throughput 
on that specific node:
It can coordinate requests, but stays responsible for the actual response to 
the client.

Load balancers not only help to increase performance by fanning out the 
requests to multiple servers,
it will also increase the availability of your cluster in terms of client to 
server connections. 

Cheers,
On 2 Feb 2014 at 17:20:28, markrthomas (mark.tho...@equifax.com) wrote:

Hello  

Any node in a Riak cluster can coordinate requests for any other Riak node  
that is responsible for the data you're reading/writing.  

What is the advantage of fronting a Riak cluster with a load-balancer?  

Thanks  

Mark  




--  
View this message in context: 
http://riak-users.197444.n3.nabble.com/Load-balancer-tp4030414.html  
Sent from the Riak Users mailing list archive at Nabble.com.  

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


Re: Load balancer

2014-02-02 Thread Konstantin Kalin
Sorry jumping into the discussion. What is a best way to monitor Riak node 
health? Most loadbalancer uses HTTP request to check if a node is alive. 

Currently we use Riak Java client to load balance requests to Riak. The issue 
is if a node gets removed or added all Java servers need to update 
configuration to reflect the changes. It’s kinda annoying for operation team. 
So we started thinking about putting LB between Riak cluster and Java clients. 

Thank you,
Konstantin.  

On Feb 2, 2014, at 8:25 AM, Gideon de Kok  wrote:

> Mark,
> 
> Your throughput of your total cluster will still be dependent on the 
> throughput on that specific node:
> It can coordinate requests, but stays responsible for the actual response to 
> the client.
> 
> Load balancers not only help to increase performance by fanning out the 
> requests to multiple servers,
> it will also increase the availability of your cluster in terms of client to 
> server connections. 
> 
> Cheers,
> On 2 Feb 2014 at 17:20:28, markrthomas (mark.tho...@equifax.com) wrote:
> 
>> Hello 
>> 
>> Any node in a Riak cluster can coordinate requests for any other Riak node 
>> that is responsible for the data you're reading/writing. 
>> 
>> What is the advantage of fronting a Riak cluster with a load-balancer? 
>> 
>> Thanks 
>> 
>> Mark 
>> 
>> 
>> 
>> 
>> -- 
>> View this message in context: 
>> http://riak-users.197444.n3.nabble.com/Load-balancer-tp4030414.html 
>> Sent from the Riak Users mailing list archive at Nabble.com. 
>> 
>> ___ 
>> riak-users mailing list 
>> riak-users@lists.basho.com 
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com 
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com

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


Re: Load balancer

2014-02-02 Thread Roberto Aloi
Hi Konstantin,

Riak exposes a number of metrics - such as counters and histograms - that
you can use to monitor your nodes' health.
Metrics are available through the HTTP API via the /stats endpoint.
For details, see:
http://docs.basho.com/riak/latest/ops/running/stats-and-monitoring/

Cheers,

Roberto Aloi
@robertoaloi



On Sun, Feb 2, 2014 at 6:23 PM, Konstantin Kalin  wrote:

> Sorry jumping into the discussion. What is a best way to monitor Riak node
> health? Most loadbalancer uses HTTP request to check if a node is alive.
>
> Currently we use Riak Java client to load balance requests to Riak. The
> issue is if a node gets removed or added all Java servers need to update
> configuration to reflect the changes. It's kinda annoying for operation
> team. So we started thinking about putting LB between Riak cluster and Java
> clients.
>
> Thank you,
> Konstantin.
>
>
> On Feb 2, 2014, at 8:25 AM, Gideon de Kok  wrote:
>
> Mark,
>
> Your throughput of your total cluster will still be dependent on the
> throughput on that specific node:
> It can coordinate requests, but stays responsible for the actual response
> to the client.
>
> Load balancers not only help to increase performance by fanning out the
> requests to multiple servers,
> it will also increase the availability of your cluster in terms of client
> to server connections.
>
> Cheers,
>
> On 2 Feb 2014 at 17:20:28, markrthomas 
> (mark.tho...@equifax.com)
> wrote:
>
> Hello
>
> Any node in a Riak cluster can coordinate requests for any other Riak node
> that is responsible for the data you're reading/writing.
>
> What is the advantage of fronting a Riak cluster with a load-balancer?
>
> Thanks
>
> Mark
>
>
>
>
> --
> View this message in context:
> http://riak-users.197444.n3.nabble.com/Load-balancer-tp4030414.html
> Sent from the Riak Users mailing list archive at 
> Nabble.com
> .
>
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>
>
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>
>


-- 
Roberto Aloi
---
Website: http://roberto-aloi.com
Twitter: @robertoaloi
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Load balancer

2014-02-02 Thread Konstantin Kalin
Well. I’m kinda aware about the stats :) But I believe they are not a good way 
for LB. The issue is LB requires a simple response OK and cannot do extended 
parsing. 

I see following cases what can happen in production:
1) Server is alive - riak is stopped
2) Server is down completely
3) Server is alive, riak is alive but it’s not a part of a cluster.
4) Server is alive, riak console is alive but backend(bitcasc for example) is 
down. 
5) What’s else?

Honestly I’m considering to build a special Web service that will run together 
with Riak and give it status. So far I was not be able to find a standard way 
using Riak capabilities to cover all 4 possible scenarios.

Thank you,
Konstantin.  

On Feb 2, 2014, at 9:33 AM, Roberto Aloi  wrote:

> Hi Konstantin,
> 
> Riak exposes a number of metrics - such as counters and histograms - that you 
> can use to monitor your nodes' health.
> Metrics are available through the HTTP API via the /stats endpoint.
> For details, see: 
> http://docs.basho.com/riak/latest/ops/running/stats-and-monitoring/
> 
> Cheers,
> 
> Roberto Aloi
> @robertoaloi
> 
> 
> 
> On Sun, Feb 2, 2014 at 6:23 PM, Konstantin Kalin  
> wrote:
> Sorry jumping into the discussion. What is a best way to monitor Riak node 
> health? Most loadbalancer uses HTTP request to check if a node is alive. 
> 
> Currently we use Riak Java client to load balance requests to Riak. The issue 
> is if a node gets removed or added all Java servers need to update 
> configuration to reflect the changes. It’s kinda annoying for operation team. 
> So we started thinking about putting LB between Riak cluster and Java 
> clients. 
> 
> Thank you,
> Konstantin.  
> 
> 
> On Feb 2, 2014, at 8:25 AM, Gideon de Kok  wrote:
> 
>> Mark,
>> 
>> Your throughput of your total cluster will still be dependent on the 
>> throughput on that specific node:
>> It can coordinate requests, but stays responsible for the actual response to 
>> the client.
>> 
>> Load balancers not only help to increase performance by fanning out the 
>> requests to multiple servers,
>> it will also increase the availability of your cluster in terms of client to 
>> server connections. 
>> 
>> Cheers,
>> On 2 Feb 2014 at 17:20:28, markrthomas (mark.tho...@equifax.com) wrote:
>> 
>>> Hello 
>>> 
>>> Any node in a Riak cluster can coordinate requests for any other Riak node 
>>> that is responsible for the data you're reading/writing. 
>>> 
>>> What is the advantage of fronting a Riak cluster with a load-balancer? 
>>> 
>>> Thanks 
>>> 
>>> Mark 
>>> 
>>> 
>>> 
>>> 
>>> -- 
>>> View this message in context: 
>>> http://riak-users.197444.n3.nabble.com/Load-balancer-tp4030414.html 
>>> Sent from the Riak Users mailing list archive at Nabble.com. 
>>> 
>>> ___ 
>>> riak-users mailing list 
>>> riak-users@lists.basho.com 
>>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com 
>> ___
>> riak-users mailing list
>> riak-users@lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 
> 
> ___
> riak-users mailing list
> riak-users@lists.basho.com
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
> 
> 
> 
> 
> -- 
> Roberto Aloi
> ---
> Website: http://roberto-aloi.com
> Twitter: @robertoaloi

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


Re: Load balancer

2014-02-02 Thread Roberto Aloi
Konstantin,

I thought you were asking about monitoring nodes' health in general and not
specifically from a Load Balancer perspective.
What load balancer are you using or planning to use?

Roberto Aloi
@robertoaloi



On Sun, Feb 2, 2014 at 6:39 PM, Konstantin Kalin  wrote:

> Well. I'm kinda aware about the stats :) But I believe they are not a good
> way for LB. The issue is LB requires a simple response OK and cannot do
> extended parsing.
>
> I see following cases what can happen in production:
> 1) Server is alive - riak is stopped
> 2) Server is down completely
> 3) Server is alive, riak is alive but it's not a part of a cluster.
> 4) Server is alive, riak console is alive but backend(bitcasc for example)
> is down.
> 5) What's else?
>
> Honestly I'm considering to build a special Web service that will run
> together with Riak and give it status. So far I was not be able to find a
> standard way using Riak capabilities to cover all 4 possible scenarios.
>
> Thank you,
> Konstantin.
>
> On Feb 2, 2014, at 9:33 AM, Roberto Aloi  wrote:
>
> Hi Konstantin,
>
> Riak exposes a number of metrics - such as counters and histograms - that
> you can use to monitor your nodes' health.
> Metrics are available through the HTTP API via the /stats endpoint.
> For details, see:
> http://docs.basho.com/riak/latest/ops/running/stats-and-monitoring/
>
> Cheers,
>
>  Roberto Aloi
> @robertoaloi
>
>
>
> On Sun, Feb 2, 2014 at 6:23 PM, Konstantin Kalin <
> konstantin.ka...@gmail.com> wrote:
>
>> Sorry jumping into the discussion. What is a best way to monitor Riak
>> node health? Most loadbalancer uses HTTP request to check if a node is
>> alive.
>>
>> Currently we use Riak Java client to load balance requests to Riak. The
>> issue is if a node gets removed or added all Java servers need to update
>> configuration to reflect the changes. It's kinda annoying for operation
>> team. So we started thinking about putting LB between Riak cluster and Java
>> clients.
>>
>> Thank you,
>> Konstantin.
>>
>>
>> On Feb 2, 2014, at 8:25 AM, Gideon de Kok  wrote:
>>
>> Mark,
>>
>> Your throughput of your total cluster will still be dependent on the
>> throughput on that specific node:
>> It can coordinate requests, but stays responsible for the actual response
>> to the client.
>>
>> Load balancers not only help to increase performance by fanning out the
>> requests to multiple servers,
>> it will also increase the availability of your cluster in terms of client
>> to server connections.
>>
>> Cheers,
>>
>> On 2 Feb 2014 at 17:20:28, markrthomas 
>> (mark.tho...@equifax.com)
>> wrote:
>>
>> Hello
>>
>> Any node in a Riak cluster can coordinate requests for any other Riak
>> node
>> that is responsible for the data you're reading/writing.
>>
>> What is the advantage of fronting a Riak cluster with a load-balancer?
>>
>> Thanks
>>
>> Mark
>>
>>
>>
>>
>> --
>> View this message in context:
>> http://riak-users.197444.n3.nabble.com/Load-balancer-tp4030414.html
>> Sent from the Riak Users mailing list archive at 
>> Nabble.com
>> .
>>
>> ___
>> riak-users mailing list
>> riak-users@lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>> ___
>> riak-users mailing list
>> riak-users@lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>>
>> ___
>> riak-users mailing list
>> riak-users@lists.basho.com
>> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com
>>
>>
>
>
> --
> Roberto Aloi
> ---
> Website: http://roberto-aloi.com
> Twitter: @robertoaloi
>
>
>


-- 
Roberto Aloi
---
Website: http://roberto-aloi.com
Twitter: @robertoaloi
___
riak-users mailing list
riak-users@lists.basho.com
http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com


Re: Load balancer

2014-02-02 Thread Brian Roach
Konstantin,

Doing a HTTP Ping request[1] to Riak is one approach. You could also
do a HTTP Fetch[2] for a specific bucket/key pair.

Another thing worth noting is that the all-new v2.0 of the Java client
we'll be releasing for Riak 2.0 is much, much better in terms of load
balancing and node management. It's built from the ground up to work
with a cluster vs. the old client which just sort of had it tacked on.

Operationally, for example, you'll be able to just push a properties
file out that your application can monitor and reconfigure the running
client.
[1] http://docs.basho.com/riak/latest/dev/references/http/ping/
[2] http://docs.basho.com/riak/latest/dev/references/http/fetch-object/

Thanks,
- Roach

On Sun, Feb 2, 2014 at 10:23 AM, Konstantin Kalin
 wrote:
> Sorry jumping into the discussion. What is a best way to monitor Riak node
> health? Most loadbalancer uses HTTP request to check if a node is alive.
>
> Currently we use Riak Java client to load balance requests to Riak. The
> issue is if a node gets removed or added all Java servers need to update
> configuration to reflect the changes. It's kinda annoying for operation
> team. So we started thinking about putting LB between Riak cluster and Java
> clients.
>
> Thank you,
> Konstantin.

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


Re: Load balancer

2014-02-02 Thread Konstantin Kalin
Sounds interesting. Does the ping covers a case when Riak is half alive? Does 
it check status of a backend engine?  
We had a case due to a bug that bitcask was down but Riak was up. 

Thank you,
Konstantin. 

On Feb 2, 2014, at 10:16 AM, Brian Roach  wrote:

> Konstantin,
> 
> Doing a HTTP Ping request[1] to Riak is one approach. You could also
> do a HTTP Fetch[2] for a specific bucket/key pair.
> 
> Another thing worth noting is that the all-new v2.0 of the Java client
> we'll be releasing for Riak 2.0 is much, much better in terms of load
> balancing and node management. It's built from the ground up to work
> with a cluster vs. the old client which just sort of had it tacked on.
> 
> Operationally, for example, you'll be able to just push a properties
> file out that your application can monitor and reconfigure the running
> client.
> [1] http://docs.basho.com/riak/latest/dev/references/http/ping/
> [2] http://docs.basho.com/riak/latest/dev/references/http/fetch-object/
> 
> Thanks,
> - Roach
> 
> On Sun, Feb 2, 2014 at 10:23 AM, Konstantin Kalin
>  wrote:
>> Sorry jumping into the discussion. What is a best way to monitor Riak node
>> health? Most loadbalancer uses HTTP request to check if a node is alive.
>> 
>> Currently we use Riak Java client to load balance requests to Riak. The
>> issue is if a node gets removed or added all Java servers need to update
>> configuration to reflect the changes. It's kinda annoying for operation
>> team. So we started thinking about putting LB between Riak cluster and Java
>> clients.
>> 
>> Thank you,
>> Konstantin.


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