-
Notifications
You must be signed in to change notification settings - Fork 489
Create tserver.group, add group to location information #3482
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -30,6 +30,7 @@ | |
| import org.apache.accumulo.core.file.rfile.RFile; | ||
| import org.apache.accumulo.core.iterators.IteratorUtil.IteratorScope; | ||
| import org.apache.accumulo.core.iteratorsImpl.system.DeletingIterator; | ||
| import org.apache.accumulo.core.lock.ServiceLockData.ServiceDescriptor; | ||
| import org.apache.accumulo.core.metadata.MetadataTable; | ||
| import org.apache.accumulo.core.spi.compaction.DefaultCompactionPlanner; | ||
| import org.apache.accumulo.core.spi.compaction.SimpleCompactionDispatcher; | ||
|
|
@@ -724,6 +725,11 @@ public enum Property { | |
| PropertyType.TIMEDURATION, | ||
| "The interval at which the TabletServer will check if on-demand tablets can be unloaded", | ||
| "4.0.0"), | ||
| TSERV_GROUP_NAME("tserver.group", ServiceDescriptor.DEFAULT_GROUP_NAME, PropertyType.STRING, | ||
| "Optional group name that will be made available to the " | ||
| + "TablerServer plugins. Groups can be used to dedicate resources " | ||
| + " to specific tables (e.g. balancing tablets for table(s) within a group)", | ||
| "4.0.0"), | ||
|
|
||
| // accumulo garbage collector properties | ||
| GC_PREFIX("gc.", null, PropertyType.PREFIX, | ||
|
|
@@ -808,6 +814,11 @@ public enum Property { | |
| + " global setting to take effect. However, you must use the API or the shell" | ||
| + " to change properties in zookeeper that are set on a table.", | ||
| "1.3.5"), | ||
| TABLE_ASSIGNMENT_GROUP("table.assignment.group", ServiceDescriptor.DEFAULT_GROUP_NAME, | ||
| PropertyType.STRING, | ||
| "Tablets for this table will be assigned to TabletServers that have a corresponding" | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This statement may not be true, it depends on the behavior of the balancer? Unless the balancer is limited to only assigning to tserver within the group? We could limit balancing choices to a group, so a balancer could only chose from tservers within this group. That may require some changes to the SPI, not sure. Or this could be provided as information to the balancer, but it does not have to honor it. If the balancer does not have to honor it then would need to change the description.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I think we should do this given that there is a default resource group and the ability to create others. |
||
| + " tserver.group property value.", | ||
| "4.0.0"), | ||
| TABLE_ARBITRARY_PROP_PREFIX("table.custom.", null, PropertyType.PREFIX, | ||
| "Prefix to be used for user defined arbitrary properties.", "1.7.0"), | ||
| TABLE_MINC_OUTPUT_DROP_CACHE("table.compaction.minor.output.drop.cache", "false", | ||
|
|
@@ -1095,7 +1106,8 @@ public enum Property { | |
| COMPACTOR_MAX_MESSAGE_SIZE("compactor.message.size.max", "10M", PropertyType.BYTES, | ||
| "The maximum size of a message that can be sent to a tablet server.", "2.1.0"), | ||
| @Experimental | ||
| COMPACTOR_QUEUE_NAME("compactor.queue", "", PropertyType.STRING, | ||
| // ELASTICITY_TODO: rename to compactor.group | ||
| COMPACTOR_QUEUE_NAME("compactor.queue", ServiceDescriptor.DEFAULT_GROUP_NAME, PropertyType.STRING, | ||
| "The queue for which this Compactor will perform compactions", "3.0.0"), | ||
| // CompactionCoordinator properties | ||
| @Experimental | ||
|
|
||
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.
This case could happen when a metadata tablet is temporarily not hosted. Would not want to warn in that case.