error starting risk 1.4.2 from prebuilt distro for MacOS

2013-09-16 Thread Roman Shestakov
hello,

I am trying to run pre-built Riak 1.4.2 distribution for Mac OS  but getting 
errors on "./bin/riak start" (Error reading 
/Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.config)

here are the steps:

rs:Development romanshestakov$ curl -O 
http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz
  % Total% Received % Xferd  Average Speed   TimeTime Time  Current
 Dload  Upload   Total   SpentLeft  Speed
100 25.8M  100 25.8M0 0   403k  0  0:01:05  0:01:05 --:--:--  410k
rs:Development romanshestakov$ tar xzvf riak-1.4.2-osx-x86_64.tar.gz
x riak-1.4.2/
x riak-1.4.2/bin/
x riak-1.4.2/data/
x riak-1.4.2/erts-5.9.1/
x riak-1.4.2/etc/
x riak-1.4.2/lib/
...
x riak-1.4.2/data/ring/
x riak-1.4.2/bin/riak
x riak-1.4.2/bin/riak-admin
x riak-1.4.2/bin/riak-debug
x riak-1.4.2/bin/search-cmd
rs:Development romanshestakov$ cd riak-1.4.2
rs:riak-1.4.2 romanshestakov$ ./bin/riak start
Error reading /Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.config

what am I doing wrong? (have MacOS 10.7.5)

Regards, Roman








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


error starting risk 1.4.2 from prebuilt distro for MacOS

2013-09-16 Thread Roman Shestakov
hello,

I am trying to run pre-built Riak 1.4.2 distribution for Mac OS  but getting 
errors on "./bin/riak start" (Error reading 
/Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.config)

here are the steps:

rs:Development romanshestakov$ curl -O 
http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz
 % Total% Received % Xferd  Average Speed   TimeTime Time  Current
Dload  Upload   Total   SpentLeft  Speed
100 25.8M  100 25.8M0 0   403k  0  0:01:05  0:01:05 --:--:--  410k
rs:Development romanshestakov$ tar xzvf riak-1.4.2-osx-x86_64.tar.gz
x riak-1.4.2/
x riak-1.4.2/bin/
x riak-1.4.2/data/
x riak-1.4.2/erts-5.9.1/
x riak-1.4.2/etc/
x riak-1.4.2/lib/
...
x riak-1.4.2/data/ring/
x riak-1.4.2/bin/riak
x riak-1.4.2/bin/riak-admin
x riak-1.4.2/bin/riak-debug
x riak-1.4.2/bin/search-cmd
rs:Development romanshestakov$ cd riak-1.4.2
rs:riak-1.4.2 romanshestakov$ ./bin/riak start
Error reading /Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.config

what am I doing wrong? (have MacOS 10.7.5)

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


error starting risk 1.4.2 from prebuilt distro for MacOS

2013-09-16 Thread Roman Shestakov
hello,

I am trying to run pre-built Riak 1.4.2 distribution for Mac OS  but getting 
errors on "./bin/riak start" (Error reading 
/Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.config)

here are the steps:

rs:Development romanshestakov$ curl -O 
http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz
 % Total% Received % Xferd  Average Speed   TimeTime Time  Current
Dload  Upload   Total   SpentLeft  Speed
100 25.8M  100 25.8M0 0   403k  0  0:01:05  0:01:05 --:--:--  410k
rs:Development romanshestakov$ tar xzvf riak-1.4.2-osx-x86_64.tar.gz
x riak-1.4.2/
x riak-1.4.2/bin/
x riak-1.4.2/data/
x riak-1.4.2/erts-5.9.1/
x riak-1.4.2/etc/
x riak-1.4.2/lib/
...
x riak-1.4.2/data/ring/
x riak-1.4.2/bin/riak
x riak-1.4.2/bin/riak-admin
x riak-1.4.2/bin/riak-debug
x riak-1.4.2/bin/search-cmd
rs:Development romanshestakov$ cd riak-1.4.2
rs:riak-1.4.2 romanshestakov$ ./bin/riak start
Error reading /Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.config

what am I doing wrong? (have MacOS 10.7.5)

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


Re: error starting risk 1.4.2 from prebuilt distro for MacOS

2013-09-17 Thread Roman Shestakov
hi Jared,

this is interesting…

I have repeated all your steps and getting the same issue as before:

s:~ romanshestakov$ cd Development
rs:Development romanshestakov$ wget 
http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz
 
--2013-09-17 20:12:48--  
http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz
Resolving s3.amazonaws.com... 205.251.242.150
Connecting to s3.amazonaws.com|205.251.242.150|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 27081322 (26M) [application/x-tar]
Saving to: `riak-1.4.2-OSX-x86_64.tar.gz.1'

100%[==>]
 27,081,322   521K/s   in 57s 

2013-09-17 20:13:46 (460 KB/s) - `riak-1.4.2-OSX-x86_64.tar.gz.1' saved 
[27081322/27081322]

rs:Development romanshestakov$ tar -zxf riak-1.4.2-OSX-x86_64.tar.gz
rs:Development romanshestakov$ cd riak-1.4.2
rs:riak-1.4.2 romanshestakov$ ./bin/riak chkconfig
Error reading /Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.config

I am on MacOs 10.7.5

weird … will use riak-1.3

Regards, Roman


On 17 Sep 2013, at 19:17, Jared Morrow wrote:

> Roman,
> 
> I have no problems with it:
> 
> ➜  /tmp  wget 
> http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz
>12:12
> --2013-09-17 12:12:10--  
> http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz
> Resolving s3.amazonaws.com... 207.171.185.200
> Connecting to s3.amazonaws.com|207.171.185.200|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 27081322 (26M) [application/x-tar]
> Saving to: ‘riak-1.4.2-OSX-x86_64.tar.gz’
> 
> 100%[===>]
>  27,081,322  1.83MB/s   in 13s
> 
> 2013-09-17 12:12:25 (2.06 MB/s) - ‘riak-1.4.2-OSX-x86_64.tar.gz’ saved 
> [27081322/27081322]
> 
> ➜  /tmp  tar -zxf riak-1.4.2-OSX-x86_64.tar.gz
> ➜  /tmp  cd riak-1.4.2
> ➜  riak-1.4.2  ./bin/riak chkconfig
> config is OK
> ➜  riak-1.4.2  ./bin/riak start
> 
> ➜  riak-1.4.2  ./bin/riak ping 
> pong
> ➜  riak-1.4.2  ./bin/riak stop
> ok
> Here is the config file that ships in the package
> 
> ➜  riak-1.4.2  cat etc/app.config 
> %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
> %% ex: ft=erlang ts=4 sw=4 et
> [
>  %% Riak Client APIs config
>  {riak_api, [
> %% pb_backlog is the maximum length to which the queue of pending
> %% connections may grow. If set, it must be an integer >= 0.
> %% By default the value is 5. If you anticipate a huge number of
> %% connections being initialised *simultaneously*, set this number
> %% higher.
> %% {pb_backlog, 64},
> 
> %% pb is a list of IP addresses and TCP ports that the Riak
> %% Protocol Buffers interface will bind.
> {pb, [ {"127.0.0.1", 8087 } ]}
> ]},
> 
>  %% Riak Core config
>  {riak_core, [
>   %% Default location of ringstate
>   {ring_state_dir, "./data/ring"},
> 
>   %% Default ring creation size.  Make sure it is a power of 2,
>   %% e.g. 16, 32, 64, 128, 256, 512 etc
>   %{ring_creation_size, 64},
> 
>   %% http is a list of IP addresses and TCP ports that the Riak
>   %% HTTP interface will bind.
>   {http, [ {"127.0.0.1", 8098 } ]},
> 
>   %% https is a list of IP addresses and TCP ports that the Riak
>   %% HTTPS interface will bind.
>   %{https, [{ "127.0.0.1", 8098 }]},
> 
>   %% Default cert and key locations for https can be overridden
>   %% with the ssl config variable, for example:
>   %{ssl, [
>   %   {certfile, "./etc/cert.pem"},
>   %   {keyfile, "./etc/key.pem"}
>   %  ]},
> 
>   %% riak_handoff_port is the TCP port that Riak uses for
>   %% intra-cluster data handoff.
>   {handoff_port, 8099 },
> 
>   %% To encrypt riak_core intra-cluster data handoff traffic,
>   %% uncomment the following line and edit its path to an
>   %% appropriate certfile and keyfile.  (This example uses a
>   %% single file with both items concatenated together.)
>   %{handoff_ssl_options, [{certfile, "/tmp/erlserver.pem"}]},
> 
>   %% DTrace support
>   %% Do not enable 'dtrace_support' unless your Erlang/OTP
>   %% runtime is compiled to support DTrace.  DTrace is
>   %% available in R15B01 (supported by the Erlang/OTP
>   %% official source package) and in R14B04 via a custom
>

Re: error starting risk 1.4.2 from prebuilt distro for MacOS

2013-09-17 Thread Roman Shestakov
Hi Christian,./riak chkconfig gives me an errorrs:bin romanshestakov$ ./riak chkconfigError reading /Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.configrs:bin romanshestakov$ the file app.config exits in the dir :rs:~ romanshestakov$ ls -la /Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.config-rw-r--r--  1 romanshestakov  staff  14890 29 Aug 21:55 /Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.configrs:~ romanshestakov$ cat /Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.config%% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-%% ex: ft=erlang ts=4 sw=4 et[ %% Riak Client APIs config {riak_api, [            %% pb_backlog is the maximum length to which the queue of pending            %% connections may grow. If set, it must be an integer >= 0.            %% By default the value is 5. If you anticipate a huge number of            %% connections being initialised *simultaneously*, set this number            %% higher.            %% {pb_backlog, 64},                         %% pb is a list of IP addresses and TCP ports that the Riak             %% Protocol Buffers interface will bind.            {pb, [ {"127.0.0.1", 8087 } ]}            ]}, %% Riak Core confighere is the config attached

app.config
Description: Binary data
everything work ok with prev. version riak-1.3.1I think MacOs build for riak-1.4.2 might be screwed upRegards, RomanOn 17 Sep 2013, at 06:58, Christian Dahlqvist wrote:Hi Roman,Can you please verify that your app.config file is correct and does not contain any errors by running `riak chkconfig`?Best regards,Christian
On 15 Sep 2013, at 01:05, Roman Shestakov <roman.shesta...@gmail.com> wrote:hello,I am trying to run pre-built Riak 1.4.2 distribution for Mac OS  but getting errors on "./bin/riak start" (Error reading /Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.config)here are the steps:rs:Development romanshestakov$ curl -O http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz % Total    % Received % Xferd  Average Speed   Time    Time Time  CurrentDload  Upload   Total   Spent    Left  Speed100 25.8M  100 25.8M    0 0   403k  0  0:01:05  0:01:05 --:--:--  410krs:Development romanshestakov$ tar xzvf riak-1.4.2-osx-x86_64.tar.gzx riak-1.4.2/x riak-1.4.2/bin/x riak-1.4.2/data/x riak-1.4.2/erts-5.9.1/x riak-1.4.2/etc/x riak-1.4.2/lib/...x riak-1.4.2/data/ring/x riak-1.4.2/bin/riakx riak-1.4.2/bin/riak-adminx riak-1.4.2/bin/riak-debugx riak-1.4.2/bin/search-cmdrs:Development romanshestakov$ cd riak-1.4.2rs:riak-1.4.2 romanshestakov$ ./bin/riak startError reading /Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.configwhat am I doing wrong? (have MacOS 10.7.5)Regards, Roman___riak-users mailing listriak-users@lists.basho.comhttp://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: error starting risk 1.4.2 from prebuilt distro for MacOS

2013-09-17 Thread Roman Shestakov
thanks Steve - if think you are right, I verified everything else and version 
incompatablity seems to be the only thing left.

in the past I was always hitting issues because I was upgrading too soon, now I 
am running into the wall because I am behind on my updrade :-(

Regards, Roman 


On 17 Sep 2013, at 20:21, Steve Vinoski wrote:

> IIRC you said you were using OS X 10.7.x, but I believe the 1.4.2 packages 
> are for 10.8.x. Perhaps you're hitting a problem related to that.
> 
> --steve
> 
> 
> On Tue, Sep 17, 2013 at 3:18 PM, Roman Shestakov  
> wrote:
> hi Jared,
> 
> this is interesting…
> 
> I have repeated all your steps and getting the same issue as before:
> 
> s:~ romanshestakov$ cd Development
> rs:Development romanshestakov$ wget 
> http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz
>  
> --2013-09-17 20:12:48--  
> http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz
> Resolving s3.amazonaws.com... 205.251.242.150
> Connecting to s3.amazonaws.com|205.251.242.150|:80... connected.
> HTTP request sent, awaiting response... 200 OK
> Length: 27081322 (26M) [application/x-tar]
> Saving to: `riak-1.4.2-OSX-x86_64.tar.gz.1'
> 
> 100%[==>]
>  27,081,322   521K/s   in 57s 
> 
> 2013-09-17 20:13:46 (460 KB/s) - `riak-1.4.2-OSX-x86_64.tar.gz.1' saved 
> [27081322/27081322]
> 
> rs:Development romanshestakov$ tar -zxf riak-1.4.2-OSX-x86_64.tar.gz
> rs:Development romanshestakov$ cd riak-1.4.2
> rs:riak-1.4.2 romanshestakov$ ./bin/riak chkconfig
> Error reading 
> /Users/romanshestakov/Development/riak-1.4.2/bin/../etc/app.config
> 
> I am on MacOs 10.7.5
> 
> weird … will use riak-1.3
> 
> Regards, Roman
> 
> 
> On 17 Sep 2013, at 19:17, Jared Morrow wrote:
> 
>> Roman,
>> 
>> I have no problems with it:
>> 
>> ➜  /tmp  wget 
>> http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz
>>12:12
>> --2013-09-17 12:12:10--  
>> http://s3.amazonaws.com/downloads.basho.com/riak/1.4/1.4.2/osx/10.8/riak-1.4.2-OSX-x86_64.tar.gz
>> Resolving s3.amazonaws.com... 207.171.185.200
>> Connecting to s3.amazonaws.com|207.171.185.200|:80... connected.
>> HTTP request sent, awaiting response... 200 OK
>> Length: 27081322 (26M) [application/x-tar]
>> Saving to: ‘riak-1.4.2-OSX-x86_64.tar.gz’
>> 
>> 100%[===>]
>>  27,081,322  1.83MB/s   in 13s
>> 
>> 2013-09-17 12:12:25 (2.06 MB/s) - ‘riak-1.4.2-OSX-x86_64.tar.gz’ saved 
>> [27081322/27081322]
>> 
>> ➜  /tmp  tar -zxf riak-1.4.2-OSX-x86_64.tar.gz
>> ➜  /tmp  cd riak-1.4.2
>> ➜  riak-1.4.2  ./bin/riak chkconfig
>> config is OK
>> ➜  riak-1.4.2  ./bin/riak start
>> 
>> ➜  riak-1.4.2  ./bin/riak ping 
>> pong
>> ➜  riak-1.4.2  ./bin/riak stop
>> ok
>> Here is the config file that ships in the package
>> 
>> ➜  riak-1.4.2  cat etc/app.config 
>> %% -*- mode: erlang;erlang-indent-level: 4;indent-tabs-mode: nil -*-
>> %% ex: ft=erlang ts=4 sw=4 et
>> [
>>  %% Riak Client APIs config
>>  {riak_api, [
>> %% pb_backlog is the maximum length to which the queue of pending
>> %% connections may grow. If set, it must be an integer >= 0.
>> %% By default the value is 5. If you anticipate a huge number of
>> %% connections being initialised *simultaneously*, set this 
>> number
>> %% higher.
>> %% {pb_backlog, 64},
>> 
>> %% pb is a list of IP addresses and TCP ports that the Riak
>> %% Protocol Buffers interface will bind.
>> {pb, [ {"127.0.0.1", 8087 } ]}
>> ]},
>> 
>>  %% Riak Core config
>>  {riak_core, [
>>   %% Default location of ringstate
>>   {ring_state_dir, "./data/ring"},
>> 
>>   %% Default ring creation size.  Make sure it is a power of 2,
>>   %% e.g. 16, 32, 64, 128, 256, 512 etc
>>   %{ring_creation_size, 64},
>> 
>>   %% http is a list of IP addresses and TCP ports that the Riak
>>   %% HTTP interface will bind.
>>   {http, [ {"127.0.0.1", 8098 } ]},
>> 
>>   %

question reg. delayed relocation of nodes in the new cluster.

2015-01-29 Thread ROMAN SHESTAKOV
hello,

I am new to riak_core and currently I am evaluating riak_core for one of the 
potential projects. I am facing the following oddity and I am not sure if it is 
by design or because I misconfigured something.

I have a riak_core ring with 3 physical nodes. When I joined first two nodes in 
the cluster( by riak_admin cluster plan; risk_admin cluster commit) the 
risk_admin member-status showed that cluster is in valid state but all the 
nodes (100%) were still sitting on the first node and both nodes showing 
pending 50%.

I was expecting the cluster to rebalance relatively quickly but nothing was 
happening until I restarted one of the nodes. When the node came up, 
member-status showed that 25% of the nodes being moved to the second node. 
Another restart resulted in complete rebalance 50% - 50% between nodes.

I removed data/ring dir on both nodes and tried to join all 3 available nodes 
into a new cluster - the same thing happened but this time the split of pending 
nodes was roughly 33%/33%/34% (as expected). The cluster rebalanced only after 
I bounced the nodes few times.

Is this expected behaviour? I was expecting that the act of committing the 
cluster plan would trigger the vnode relocation between the physical nodes?

to clarify - this is brand new riak_core app without *any* of custom 
functionality for handoff implemented. 

apologies if this is a stupid question - as I said I am just starting with 
playing with riak_core.

Regards, Roman



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


Is there a way to efficiently do a coverage call to vnodes local to the given host?

2015-02-13 Thread Roman Shestakov
Hello,

I am wandering if there is a way to do the following in riak_core

1. I need to collect data from all the vnodes which are currently located on a 
given node.
2. I understand that it is ether possible to make a call to vnode given the 
hash key or it's possible to make a coverage call to all vnodes in the cluster.
3 . But in my case I only need to get all the data from vnodes living on a 
given physical host. 

Is there a well defined way of doing this?

I can see in api there is a riak_core_apl:active_owners call which returns 
Indexnodes pairs so it is possible to filter by a node and the call each 
Indexnode with riak_core_vnode_master:synch_spawn_command but maybe there is a 
better way of doing this?

Regards, Roman

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


Re: Is there a way to efficiently do a coverage call to vnodes local to the given host?

2015-02-13 Thread Roman Shestakov
You are right, my apologies. Reposted to the correct list
Regards, Roman

Sent from my iPhone

> On 13 Feb 2015, at 14:02, Russell Brown  wrote:
> 
> Not to be rude, because I think this is a good question and warrants an 
> answer: but you might have more luck on the riak-core list
> 
> http://lists.basho.com/mailman/listinfo/riak-core_lists.basho.com
> 
> Cheers
> 
> Russell
> 
>> On 13 Feb 2015, at 13:55, Roman Shestakov  wrote:
>> 
>> Hello,
>> 
>> I am wandering if there is a way to do the following in riak_core
>> 
>> 1. I need to collect data from all the vnodes which are currently located on 
>> a given node.
>> 2. I understand that it is ether possible to make a call to vnode given the 
>> hash key or it's possible to make a coverage call to all vnodes in the 
>> cluster.
>> 3 . But in my case I only need to get all the data from vnodes living on a 
>> given physical host. 
>> 
>> Is there a well defined way of doing this?
>> 
>> I can see in api there is a riak_core_apl:active_owners call which returns 
>> Indexnodes pairs so it is possible to filter by a node and the call each 
>> Indexnode with riak_core_vnode_master:synch_spawn_command but maybe there is 
>> a better way of doing this?
>> 
>> Regards, Roman
>> 
>> Sent from my iPhone
>> ___
>> 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


is it possible to start riak_kv as foreground process?

2015-07-08 Thread ROMAN SHESTAKOV
hello,

is there any way to start RIAK_KV as a foreground process instead of as a demon 
process, which is what "bin/riak start” does?

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


Re: is it possible to start riak_kv as foreground process?

2015-07-08 Thread Roman Shestakov
Thanks, but i meant to run as foreground hidden process, without console.

I need to run riak kv under specific process management system which controls 
process live cycle. It cant do it if the process is backgrounded. 

I really dont want ti hack the riak runner wrapper so though maybe there us 
sine trick. 

But in any case, it seems surprising that this option is missing as a standard

Regards, Roman  

Sent from my iPhone

> On 8 Jul 2015, at 17:54, Cuyler Jones  wrote:
> 
> Hi Roman --
> 
> If riak is not currently running:
> 
> bin/riak console
> 
> If riak is currently running:
> 
> bin/riak attach
> 
> 
> 
>> On Wed, Jul 8, 2015 at 9:41 AM, ROMAN SHESTAKOV  
>> wrote:
>> hello,
>> 
>> is there any way to start RIAK_KV as a foreground process instead of as a 
>> demon process, which is what "bin/riak start” does?
>> 
>> Regards, Roman
>> ___
>> 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: is it possible to start riak_kv as foreground process?

2015-07-09 Thread ROMAN SHESTAKOV
hi Luke,

I am using the proprietary system deployed in our company, it allows to control 
the live cycle of the process, collect the logs centrally, etc. etc.

in any case - I extended bin/riak runner with extra command ‘foreground’ and it 
solved my problem. I am starting risk_kv (with bin/riak foreground) from my own 
shell wrapper in which I substitute existing bin/riak with my own version + 
setup some env variables. 

I think this command would be useful as a standard risk command 

Regards, Roman


> On 8 Jul 2015, at 22:43, Luke Bakken  wrote:
> 
> Hi Roman,
> 
> Which "process management system" are you using? I have successfully run Riak 
> using monit and the fact that Riak runs in the background does not cause 
> issues.
> 
> For instance, this monit configuration will start/stop Riak as well as 
> monitor it. You must disable your system's init script for Riak if you want 
> monit to do the job instead.
> 
> check process riak
> with pidfile /var/run/riak/riak.pid
> start program = "/etc/init.d/riak start" with timeout 30 seconds
> stop program = "/etc/init.d/riak stop" with timeout 60 seconds
> alert riak-ale...@domain.com <mailto:riak-ale...@domain.com>
> on { connection, timeout }
> with mail-format {
> subject: [ALERT] $HOST: Riak Service - $EVENT
> message: $DATE
> Problem:
> $HOST: Riak raised the following event: $EVENT
> $DESCRIPTION
> }
> with reminder on 10 cycles
> if failed (url http://localhost:8098/ping 
> <http://localhost:8098/ping> and content == '^OK$')
> with timeout 15 seconds
> for 2 times within 5 cycles
> then alert
> if 3 restarts within 5 cycles then alert
> group riak
> 
> --
> Luke Bakken
> Engineer
> lbak...@basho.com <mailto:lbak...@basho.com>
> On Wed, Jul 8, 2015 at 2:17 PM, Roman Shestakov  <mailto:roman.shesta...@gmail.com>> wrote:
> Thanks, but i meant to run as foreground hidden process, without console.
> 
> I need to run riak kv under specific process management system which controls 
> process live cycle. It cant do it if the process is backgrounded. 
> 
> I really dont want ti hack the riak runner wrapper so though maybe there us 
> sine trick. 
> 
> But in any case, it seems surprising that this option is missing as a standard
> 
> Regards, Roman  
> 
> Sent from my iPhone
> 
> On 8 Jul 2015, at 17:54, Cuyler Jones  <mailto:cuyler.jo...@gmail.com>> wrote:
> 
>> Hi Roman --
>> 
>> If riak is not currently running:
>> 
>> bin/riak console
>> 
>> If riak is currently running:
>> 
>> bin/riak attach
>> 
>> 
>> 
>> On Wed, Jul 8, 2015 at 9:41 AM, ROMAN SHESTAKOV > <mailto:romanshesta...@yahoo.co.uk>> wrote:
>> hello,
>> 
>> is there any way to start RIAK_KV as a foreground process instead of as a 
>> demon process, which is what "bin/riak start” does?
>> 
>> Regards, Roman
>> ___
>> riak-users mailing list
>> riak-users@lists.basho.com <mailto:riak-users@lists.basho.com>
>> http://lists.basho.com/mailman/listinfo/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 <mailto:riak-users@lists.basho.com>
> http://lists.basho.com/mailman/listinfo/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: is it possible to start riak_kv as foreground process?

2015-07-13 Thread ROMAN SHESTAKOV
thanks a lot! this might be a better solution that I have now which replaces 
the standard riak runner script with a customised one (which adds 'foreground’ 
option” -noinput -noshell) 

Regards, Roman

> On 13 Jul 2015, at 04:01, Shunichi Shinohara  wrote:
> 
> Hi Roman,
> 
> FWIW, -noinput option of erl [1] makes beam not to read input and disables
> interactive shell. Runner scripts that rebar generates passes extra args
> of console command to erl (actually erlexec), one can add the option as:
> 
>  riak console -noinput
> 
> Note: some features can not be used, e.g. pid file or "riak attach-direct".
> 
> [1] http://erlang.org/doc/man/erl.html
> 
> Thanks,
> Shino


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


is it possible to use FQDN instead of IP in riak.conf for "listener.http.$name” field?

2015-07-20 Thread ROMAN SHESTAKOV

Hello,

is there any way to specify in riak.conf in field "listener.http.$name” FQDN 
instead of IP address?

>>>listener.http.$name  This is the IP address and TCP port to which the Riak 
>>>HTTP interface will bind. {"127.0.0.1",8098}<<<

why is it required to use IP address instead of a host name? In my setting 
RIAK_KV is deployed on dynamic VMs and IP could be changed if the VM is 
launched on a different hypervisor.

Regards, Roman


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


Re: is it possible to use FQDN instead of IP in riak.conf for "listener.http.$name” field?

2015-08-04 Thread ROMAN SHESTAKOV
thanks a lot Richard and Geoff
Regards, Roman

> On 4 Aug 2015, at 20:51, Geoff Clark  wrote:
> 
> Can confirm, we have this set in our production cluster.
> 
> On Mon, Aug 3, 2015 at 6:31 AM, Richard Jonas 
>  <mailto:richard.jo...@erlang-solutions.com>> wrote:
> Hi Roman,
> 
> my guess is that you can use 0.0.0.0 as IP address which means "listen on 
> every network device", so if the IP address changes you don't need to change 
> anything in the config. Please double check this.
> 
> Richard
> 
> On Wed, Jul 22, 2015 at 7:03 PM, Nick Marino  <mailto:nmar...@basho.com>> wrote:
> Hi Roman,
> 
> I took a quick look at the riak_api code, and unfortunately it doesn't look 
> like there's an easy way to do this right now. The code assumes you'll enter 
> an IP address, and there's no place where it would attempt to resolve a 
> hostname if you passed that in instead.
> 
> That said, this does seem like it would be a nice feature to have, and 
> probably shouldn't be terribly difficult to implement. If you have a GitHub 
> account you could try logging a feature request under the issues section for 
> the riak_api project (https://github.com/basho/riak_api 
> <https://github.com/basho/riak_api>). I can't make any guarantees as to 
> whether/when anyone will have time to look into it, but hopefully it's 
> something that could be done in the short to medium term. If you don't have a 
> GitHub account and would like me to enter this for you, send me an email and 
> I can get a request filed. 
> 
> In the mean time, your best bet is probably to write a script to 
> automatically regenerate your config file with the correct IP addresses as 
> needed. Not the prettiest solution, but unfortunately that's the best 
> suggestion I have for the time being.
> 
> Thanks,
> Nick
> 
> On Mon, Jul 20, 2015 at 4:48 PM, ROMAN SHESTAKOV  <mailto:romanshesta...@yahoo.co.uk>> wrote:
> 
> Hello,
> 
> is there any way to specify in riak.conf in field "listener.http.$name” FQDN 
> instead of IP address?
> 
> >>>listener.http.$name  This is the IP address and TCP port to which the Riak 
> >>>HTTP interface will bind. {"127.0.0.1",8098}<<<
> 
> why is it required to use IP address instead of a host name? In my setting 
> RIAK_KV is deployed on dynamic VMs and IP could be changed if the VM is 
> launched on a different hypervisor.
> 
> Regards, Roman
> 
> 
> ___
> riak-users mailing list
> riak-users@lists.basho.com <mailto:riak-users@lists.basho.com>
> http://lists.basho.com/mailman/listinfo/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 <mailto:riak-users@lists.basho.com>
> http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com 
> <http://lists.basho.com/mailman/listinfo/riak-users_lists.basho.com>
> 
> 
> 
> 
> -- 
> Richard Jonas
> Erlang Solutions Hungary Kft
> 
> Address:
>   Riverpark Office K.32
>   Közraktár street 32. 3/1.
>   1093 Budapest
>   Hungary
> Phone/fax:
>   +36-1-7000-654 
> ___
> riak-users mailing list
> riak-users@lists.basho.com <mailto:riak-users@lists.basho.com>
> http://lists.basho.com/mailman/listinfo/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