Skip to content
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

Upgrade Helix library version and add auto maintenance mode in HelixVcrPopulateTool #1194

Merged
merged 2 commits into from
Jul 17, 2019

Conversation

zzmao
Copy link
Contributor

@zzmao zzmao commented Jun 17, 2019

Upgrade Helix library version.
Add auto maintenance mode in HelixVcrPopulateTool.

@zzmao zzmao requested review from lightningrob and jsjtzyy June 17, 2019 22:29
@codecov-io
Copy link

codecov-io commented Jun 17, 2019

Codecov Report

Merging #1194 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master    #1194   +/-   ##
=========================================
  Coverage     83.62%   83.62%           
  Complexity       57       57           
=========================================
  Files             6        6           
  Lines           348      348           
  Branches         38       38           
=========================================
  Hits            291      291           
  Misses           45       45           
  Partials         12       12

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8c9a38d...d58fa8b. Read the comment docs.

Copy link
Contributor

@jsjtzyy jsjtzyy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, two minor comments.

@@ -141,6 +141,8 @@ static void createCluster(String destZkString, String destClusterName) {
ConfigAccessor configAccessor = new ConfigAccessor(destZkClient);
ClusterConfig clusterConfig = configAccessor.getClusterConfig(destClusterName);
clusterConfig.setPersistBestPossibleAssignment(true);
clusterConfig.setMaxOfflineInstancesAllowed(4); // if offline instances >= 4, helix enters maintenance mode.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you move comments to a separate line?

@@ -141,6 +141,8 @@ static void createCluster(String destZkString, String destClusterName) {
ConfigAccessor configAccessor = new ConfigAccessor(destZkClient);
ClusterConfig clusterConfig = configAccessor.getClusterConfig(destClusterName);
clusterConfig.setPersistBestPossibleAssignment(true);
clusterConfig.setMaxOfflineInstancesAllowed(4); // if offline instances >= 4, helix enters maintenance mode.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Better to make thresholds (enter/exit maintenance mode) configurable.

clusterConfig.setPersistBestPossibleAssignment(true);
clusterConfig.setMaxOfflineInstancesAllowed(4);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we make the min/max values configurable? the defaults seem okay but would be good to add optional command line args to override them.

@jsjtzyy jsjtzyy merged commit 9836511 into linkedin:master Jul 17, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants