-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reduced Replication #402
Merged
Merged
Reduced Replication #402
Changes from all commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
68ede20
Made .app file dynamically generated.
lordnull 1b4dbb7
Added conf option for reduced repl
lordnull aa3ecc3
Reversed default.
lordnull 073fef4
Added the reduction mutator on start.
lordnull 2d4b513
Refactore reduction mutator to make kv behavior.
lordnull 1a3e146
Very rough reduced replication mutator
lordnull eb6e86f
Fixed meaning of full_objects values to be intitable.
lordnull 388ec1a
Fixed reduce when full objects is a number
lordnull 7d9c54e
Fixed up reduce and mutate on get.
lordnull 7d13cbf
Updated to mutate_get/1 callback
lordnull 9e65797
Fixed proxy get on reduced objects.
lordnull 86ec1b4
Added documentation
lordnull 97d1949
Added very very light priming on how this is a kv_mutator
lordnull File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
% -*- mode: erlang -*- | ||
{application, | ||
riak_repl, | ||
[{description, "Enterprise replication for Riak"}, | ||
{id, "riak_repl"}, | ||
{vsn, "1.4.2"}, | ||
{applications, [kernel, | ||
stdlib, | ||
sasl, | ||
crypto, | ||
ssl, | ||
riak_core, | ||
riak_kv, | ||
ranch]}, | ||
{registered, [riak_repl_connector_sup, | ||
riak_repl_leader, | ||
riak_repl_stats, | ||
riak_rep_sup]}, | ||
{mod, {riak_repl_app, []}}, | ||
{env, [ | ||
%% milliseconds to wait after checking all listeners | ||
{client_retry_timeout, 30000}, | ||
%% milliseconds to wait for successfull connect | ||
{client_connect_timeout, 15000}, | ||
|
||
{fullsync_on_connect, true}, | ||
% minutes | ||
{fullsync_interval, 360}, | ||
{data_root, "data/riak_repl"}, | ||
{merkle_bufsize, 1048576}, | ||
%% bytes | ||
{server_max_pending, 5}, | ||
{client_ack_frequency, 5}, | ||
{queue_size, 104857600}, | ||
{fullsync_strategies, [keylist, syncv1]}, | ||
{min_get_workers, 5}, | ||
{max_get_workers, 100}, | ||
{min_put_workers, 5}, | ||
{max_put_workers, 100}, | ||
%% whether to issue gets directly against the vnode | ||
{vnode_gets, true}, | ||
%% How many fullsync diff objects to send before needing an | ||
%% ACK from the client. Setting this too high will clog your | ||
%% TCP buffers. | ||
{diff_batch_size, 100} | ||
]} | ||
]}. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why was riak_repl.app.src changed?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It did not exist before, so if one needs to add/remove a module to the repl application, you need to update ebin/riak_repl.app. By adding src/riak_repl.app.src the app file is automatically generated and updated as modules are added/removed.
The fact that I needed to update the .app file has bit me on other features before (cascading realtime), and this was the straw that broke the camel's back. My investigations indicated there was no good reason the for the .app file to be static, so I made it dynamically generated.