Skip to content

Commit 8199c53

Browse files
authored
Merge pull request #927 from basho/mcx/add-riak-repl-dependency
Add repl dependency
2 parents 37c43c3 + f7f7384 commit 8199c53

File tree

11 files changed

+770
-6
lines changed

11 files changed

+770
-6
lines changed

RELEASE-NOTES.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#Riak KV 2.2.4 Release Notes
2+
Including riak_repl as a dep of open-source Riak. No changes other than the inclusion of the dependency and updating the release config.
3+
14
#Riak KV 2.2.3 Release Notes
25
http://docs.basho.com/riak/kv/2.2.3/release-notes/
36

pkg.vars.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
{package_install_user, "riak"}.
1010
{package_install_group, "riak"}.
1111
{package_install_user_desc, "Riak user"}.
12-
{package_commands, {list, [[{name, "riak"}], [{name, "riak-admin"}], [{name, "search-cmd"}], [{name, "riak-debug"}]]}}.
12+
{package_commands, {list, [[{name, "riak"}], [{name, "riak-admin"}], [{name, "search-cmd"}], [{name, "riak-repl"}], [{name, "riak-debug"}]]}}.
1313
{package_shortdesc, "Riak is a distributed data store"}.
1414
{package_desc, "Riak is a distributed data store"}.
1515
{bin_or_sbin, "sbin"}.

rebar.config

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,9 @@
2020
{riak_kv, ".*", {git, "git://github.com/basho/riak_kv.git", {tag, "2.1.7"}}},
2121
{riak_search, ".*", {git, "git://github.com/basho/riak_search.git", {tag, "2.1.6"}}},
2222
{riak_control, ".*", {git, "git://github.com/basho/riak_control.git", {tag, "2.1.6"}}},
23+
{riak_repl, ".*", {git, "git://github.com/basho/riak_repl.git", {tag, "2.1.8"}}},
2324
{riaknostic, ".*", {git, "git://github.com/basho/riaknostic.git", {tag, "2.1.7"}}},
24-
{yokozuna, ".*", {git, "git://github.com/basho/yokozuna.git", {branch, "develop-2.2"}}},
25+
{yokozuna, ".*", {git, "git://github.com/basho/yokozuna.git", {tag, "2.1.10"}}},
2526
{riak_auth_mods, ".*", {git, "git://github.com/basho/riak_auth_mods.git", {tag, "2.1.0"}}},
2627
{rebar_lock_deps_plugin, ".*", {git, "https://github.com/basho/rebar_lock_deps_plugin.git", {tag, "3.1.0p1"}}}
2728
]}.

rebar.config.lock

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,18 @@
145145
{riak_control,".*",
146146
{git,"git://github.com/basho/riak_control.git",
147147
"cbf605a9eb476b8539c87e2f5c36f9d76c352b4a"}},
148+
{ranch,".*",
149+
{git,"git://github.com/basho/ranch.git",
150+
"3f70e09efe992bbe1989d40812eded936cd2a0e1"}},
151+
{ebloom,".*",
152+
{git,"git://github.com/basho/ebloom.git",
153+
"0b615927ecc04b3de0e4e35389431aed64498acb"}},
154+
{riak_repl_pb_api,".*",
155+
{git,"git://github.com/basho/riak_repl_pb_api.git",
156+
"8b729ac46c059c3a3451090dd8fa3c0e67509010"}},
157+
{riak_repl,".*",
158+
{git,"git://github.com/basho/riak_repl.git",
159+
"a41ac02182c993c662f316015224c4f615a5156b"}},
148160
{riaknostic,".*",
149161
{git,"git://github.com/basho/riaknostic.git",
150162
"dad8939d0ef32fbf435d13697720223293195282"}},

rel/files/advanced.config

Lines changed: 84 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,86 @@
1-
%% Config file used to set advanced configuration options
1+
[
2+
{riak_core,
3+
[
4+
%% The cluster manager will listen for connections from remote
5+
%% clusters on this ip and port. Every node runs one cluster
6+
%% manager, but only the cluster manager running on the
7+
%% cluster_leader will service requests. This can change as nodes
8+
%% enter and leave the cluster.
9+
{cluster_mgr, {"{{cluster_manager_ip}}", {{cluster_manager_port}} } }
10+
]},
211

3-
[{lager,
12+
{riak_repl,
13+
[
14+
%% Path (relative or absolute) to the working directory for the
15+
%% replication process
16+
{data_root, "{{repl_data_root}}"},
17+
18+
%% The hard limit of fullsync workers that will be running on the
19+
%% source side of a cluster across all nodes on that cluster for a
20+
%% fullsync to a sink cluster. This means if one has configured
21+
%% fullsync for two different clusters, both with a
22+
%% max_fssource_cluster of 5, 10 fullsync workers can be in
23+
%% progress. Only affects nodes on the source cluster on which this
24+
%% parameter is defined via the configuration file or command line.
25+
{max_fssource_cluster, 5},
26+
27+
%% Limits the number of fullsync workers that will be running on
28+
%% each individual node in a source cluster. This is a hard limit for
29+
%% all fullsyncs enabled; additional fullsync configurations will not
30+
%% increase the number of fullsync workers allowed to run on any node.
31+
%% Only affects nodes on the source cluster on which this parameter is
32+
%% defined via the configuration file or command line.
33+
{max_fssource_node, 1},
34+
35+
%% Limits the number of fullsync workers allowed to run on each
36+
%% individual node in a sink cluster. This is a hard limit for all
37+
%% fullsync sources interacting with the sink cluster. Thus, multiple
38+
%% simultaneous source connections to the sink cluster will have to
39+
%% share the sink node's number of maximum connections. Only affects
40+
%% nodes on the sink cluster on which this parameter is defined via
41+
%% the configuration file or command line.
42+
{max_fssink_node, 1},
43+
44+
%% Whether to initiate a fullsync on initial connection from the
45+
%% sink cluster.
46+
{fullsync_on_connect, true},
47+
48+
%% A single integer value representing the duration to wait in
49+
%% minutes between fullsyncs, or a list of {clustername,
50+
%% time_in_minutes} pairs for each sink participating in fullsync
51+
%% replication.
52+
{fullsync_interval, 30},
53+
54+
%% The maximum size the realtime replication queue can grow to
55+
%% before new objects are dropped. Defaults to 100MB. Dropped
56+
%% objects will need to be replication with a fullsync.
57+
{rtq_max_bytes, 104857600},
58+
59+
%% Enable Riak CS proxy_get and block filter.
60+
{proxy_get, disabled},
61+
62+
%% A heartbeat message is sent from the source to the sink every
63+
%% heartbeat_interval. Setting heartbeat_interval to undefined
64+
%% disables the realtime heartbeat. This feature is only available in
65+
%% Riak Enterprise 1.3.2+.
66+
{rt_heartbeat_interval, 15},
67+
68+
%% If a heartbeat response is not received in rt_heartbeat_timeout
69+
%% seconds, then the source connection exits and will be
70+
%% re-established. This feature is only available in Riak
71+
%% Enterprise 1.3.2+.
72+
{rt_heartbeat_timeout, 15},
73+
74+
%% By default, fullsync replication will try to coordinate with
75+
%% other riak subsystems that may be contending for the same
76+
%% resources. This will help to prevent system response degradation
77+
%% under times of heavy load from multiple background tasks. To
78+
%% disable background coordination, set this parameter to false.
79+
%% Enterprise 2.0+.
80+
{fullsync_use_background_manager, true}
81+
]},
82+
83+
{lager,
484
[
585
{extra_sinks,
686
[
@@ -19,4 +99,5 @@
1999
]
20100
}
21101
]
22-
}].
102+
}
103+
].

rel/files/riak-debug

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,9 @@ if [ 1 -eq $get_riakcmds ]; then
481481
dump riak_search_aae_status "$riak_bin_dir"/riak-admin search aae-status
482482
dump riak_diag "$riak_bin_dir"/riak-admin diag
483483
dump riak_repl_status "$riak_bin_dir"/riak-repl status
484+
dump riak_repl_connections "$riak_bin_dir"/riak-repl connections
485+
dump riak_repl_clusterstats "$riak_bin_dir"/riak-repl clusterstats
486+
dump riak_repl_modes "$riak_bin_dir"/riak-repl modes
484487

485488
# Make a flat, easily searchable version of the app.config settings
486489
riak_epaths=`make_app_epaths "${riak_app_config}"`

0 commit comments

Comments
 (0)