Interface GuardrailsMBean
- All Known Implementing Classes:
Guardrails
public interface GuardrailsMBean
JMX entrypoint for updating the default guardrails configuration parsed from
cassandra.yaml.
This is different to just exposing GuardrailsConfig in that the methods here should be JMX-friendly.
For consistency, guardrails based on a simple numeric threshold should use the naming scheme
<whatIsGuarded>WarnThreshold for soft limits and <whatIsGuarded>FailThreshold for hard
ones, and if the value has a unit, that unit should be added at the end (for instance,
<whatIsGuarded>FailThresholdInKb). For "boolean" guardrails that disable a feature, use
<whatIsGuardedEnabled. Other type of guardrails can use appropriate suffixes but should start with
<whatIsGuarded>.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether ALLOW FILTERING property is allowed.booleanGets whether users can use the ALTER TABLE statement to change columnsintintbooleanReturns whether users can create new COMPACT STORAGE tablesintintbooleanReturns whether users can DROP a keyspacebooleanReturns whether users can TRUNCATE or DROP TABLEintintbooleanReturns whether GROUP BY queries are allowed.intintbooleanbooleanintintintintintintintintintintbooleanReturns whether it is possible to execute a query against secondary indexes without specifying any partition key restrictions.intintintintlonglongbooleanReturns whether list operations that require read before write are allowed.intintbooleanintintbooleanReturns whether SimpleStrategy is allowed on keyspace creation or alterationintintbooleanReturns whether users can disable compression on tablesbooleanReturns whether user-provided timestamps are allowed.intintbooleanbooleanReturns whether it is allowed to create or alter table to use 0 default TTL with TimeWindowCompactionStrategy.booleanReturns whether warnings will be emitted when usage of 0 default TTL on a table with TimeWindowCompactionStrategy is detected.voidsetAllowFilteringEnabled(boolean enabled) Sets whether ALLOW FILTERING is allowed.voidsetAlterTableEnabled(boolean enabled) Sets whether users can use the ALTER TABLE statement to change columnsvoidsetCollectionSizeThreshold(String warnSize, String failSize) voidsetColumnsPerTableThreshold(int warn, int fail) voidsetColumnValueSizeThreshold(String warnSize, String failSize) voidsetCompactTablesEnabled(boolean enabled) Sets whether users can create new COMPACT STORAGE tablesvoidvoidsetDataDiskUsagePercentageThreshold(int warn, int fail) voidsetDropKeyspaceEnabled(boolean enabled) Sets whether users can DROP a keyspacevoidsetDropTruncateTableEnabled(boolean enabled) Sets whether users can TRUNCATE or DROP TABLEvoidsetFieldsPerUDTThreshold(int warn, int fail) voidsetGroupByEnabled(boolean enabled) Sets whether GROUP BY queries are allowed.voidsetInSelectCartesianProductThreshold(int warn, int fail) voidsetIntersectFilteringQueryEnabled(boolean value) voidsetIntersectFilteringQueryWarned(boolean value) voidsetItemsPerCollectionThreshold(int warn, int fail) voidsetKeyspacesThreshold(int warn, int fail) voidsetMaterializedViewsPerTableThreshold(int warn, int fail) voidsetMaximumReplicationFactorThreshold(int warn, int fail) voidsetMaximumTimestampThreshold(String warnDuration, String failDuration) Sets the warning upper bound for user supplied timestamps.voidsetMinimumReplicationFactorThreshold(int warn, int fail) voidsetMinimumTimestampThreshold(String warnDuration, String failDuration) Sets the warning lower bound for user supplied timestamps.voidsetNonPartitionRestrictedQueryEnabled(boolean enabled) Sets whether it is possible to execute a query against indexes (secondary or SAI) without specifying any partition key restrictions.voidsetPageSizeThreshold(int warn, int fail) voidsetPartitionKeysInSelectThreshold(int warn, int fail) voidsetPartitionSizeThreshold(String warnSize, String failSize) voidsetPartitionTombstonesThreshold(long warn, long fail) voidsetReadBeforeWriteListOperationsEnabled(boolean enabled) Sets whether list operations that require read before write are allowed.voidsetReadConsistencyLevelsDisallowed(Set<String> consistencyLevels) voidsetReadConsistencyLevelsDisallowedCSV(String consistencyLevels) voidsetReadConsistencyLevelsWarned(Set<String> consistencyLevels) voidsetReadConsistencyLevelsWarnedCSV(String consistencyLevels) voidsetSaiFrozenTermSizeThreshold(String warnSize, String failSize) voidsetSaiSSTableIndexesPerQueryThreshold(int warn, int fail) Sets warning and failure thresholds for the number of SAI SSTable indexes searched by a queryvoidsetSaiStringTermSizeThreshold(String warnSize, String failSize) voidsetSaiVectorTermSizeThreshold(String warnSize, String failSize) voidsetSecondaryIndexesEnabled(boolean enabled) Enables or disables the ability to create secondary indexesvoidsetSecondaryIndexesPerTableThreshold(int warn, int fail) voidsetSimpleStrategyEnabled(boolean enabled) Sets whether SimpleStrategy is allowed on keyspace creation or alterationvoidsetTablePropertiesDisallowed(Set<String> properties) voidsetTablePropertiesDisallowedCSV(String properties) voidsetTablePropertiesIgnored(Set<String> properties) voidsetTablePropertiesIgnoredCSV(String properties) voidsetTablePropertiesWarned(Set<String> properties) voidsetTablePropertiesWarnedCSV(String properties) voidsetTablesThreshold(int warn, int fail) voidsetUncompressedTablesEnabled(boolean enabled) Sets whether users can disable compression on tablesvoidsetUserTimestampsEnabled(boolean enabled) Sets whether user-provided timestamps are allowed.voidsetVectorDimensionsThreshold(int warn, int fail) voidsetVectorTypeEnabled(boolean enabled) voidsetWriteConsistencyLevelsDisallowed(Set<String> consistencyLevels) voidsetWriteConsistencyLevelsDisallowedCSV(String consistencyLevels) voidsetWriteConsistencyLevelsWarned(Set<String> consistencyLevels) voidsetWriteConsistencyLevelsWarnedCSV(String consistencyLevels) voidsetZeroTTLOnTWCSEnabled(boolean value) Sets whether users can use 0 default TTL on a table with TimeWindowCompactionStrategy.voidsetZeroTTLOnTWCSWarned(boolean value) Sets whether warnings will be emitted when usage of 0 default TTL on a table with TimeWindowCompactionStrategy is detected.
-
Method Details
-
getKeyspacesWarnThreshold
int getKeyspacesWarnThreshold()- Returns:
- The threshold to warn when creating more user keyspaces than threshold. -1 means disabled.
-
getKeyspacesFailThreshold
int getKeyspacesFailThreshold()- Returns:
- The threshold to prevent creating more user keyspaces than threshold. -1 means disabled.
-
setKeyspacesThreshold
void setKeyspacesThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when creating more user keyspaces than threshold. -1 means disabled.fail- The threshold to prevent creating more user keyspaces than threshold. -1 means disabled.
-
getTablesWarnThreshold
int getTablesWarnThreshold()- Returns:
- The threshold to warn when creating more tables than threshold. -1 means disabled.
-
getTablesFailThreshold
int getTablesFailThreshold()- Returns:
- The threshold to prevent creating more tables than threshold. -1 means disabled.
-
setTablesThreshold
void setTablesThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when creating more tables than threshold. -1 means disabled.fail- The threshold to prevent creating more tables than threshold. -1 means disabled.
-
getColumnsPerTableWarnThreshold
int getColumnsPerTableWarnThreshold()- Returns:
- The threshold to warn when having more columns per table than threshold. -1 means disabled.
-
getColumnsPerTableFailThreshold
int getColumnsPerTableFailThreshold()- Returns:
- The threshold to prevent having more columns per table than threshold. -1 means disabled.
-
setColumnsPerTableThreshold
void setColumnsPerTableThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when having more columns per table than threshold. -1 means disabled.fail- The threshold to prevent having more columns per table than threshold. -1 means disabled.
-
getSecondaryIndexesPerTableWarnThreshold
int getSecondaryIndexesPerTableWarnThreshold()- Returns:
- The threshold to warn when creating more secondary indexes per table than threshold. -1 means disabled.
-
getSecondaryIndexesPerTableFailThreshold
int getSecondaryIndexesPerTableFailThreshold()- Returns:
- The threshold to prevent creating more secondary indexes per table than threshold. -1 means disabled.
-
setSecondaryIndexesPerTableThreshold
void setSecondaryIndexesPerTableThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when creating more secondary indexes per table than threshold. -1 means disabled.fail- The threshold to prevent creating more secondary indexes per table than threshold. -1 means disabled.
-
getSecondaryIndexesEnabled
boolean getSecondaryIndexesEnabled()- Returns:
- Whether secondary index creation is active or not on the node
-
setSecondaryIndexesEnabled
void setSecondaryIndexesEnabled(boolean enabled) Enables or disables the ability to create secondary indexes- Parameters:
enabled-
-
getMaterializedViewsPerTableWarnThreshold
int getMaterializedViewsPerTableWarnThreshold()- Returns:
- The threshold to warn when creating more materialized views per table than threshold. -1 means disabled.
-
getMaterializedViewsPerTableFailThreshold
int getMaterializedViewsPerTableFailThreshold()- Returns:
- The threshold to prevent creating more materialized views per table than threshold. -1 means disabled.
-
setMaterializedViewsPerTableThreshold
void setMaterializedViewsPerTableThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when creating more materialized views per table than threshold. -1 means disabled.fail- The threshold to prevent creating more materialized views per table than threshold. -1 means disabled.
-
getTablePropertiesWarned
- Returns:
- properties that are warned about when creating or altering a table.
-
getTablePropertiesWarnedCSV
String getTablePropertiesWarnedCSV()- Returns:
- Comma-separated list of properties that are warned about when creating or altering a table.
-
setTablePropertiesWarned
- Parameters:
properties- properties that are warned about when creating or altering a table.
-
setTablePropertiesWarnedCSV
- Parameters:
properties- Comma-separated list of properties that are warned about when creating or altering a table.
-
getTablePropertiesDisallowed
- Returns:
- properties that are not allowed when creating or altering a table.
-
getTablePropertiesDisallowedCSV
String getTablePropertiesDisallowedCSV()- Returns:
- Comma-separated list of properties that are not allowed when creating or altering a table.
-
setTablePropertiesDisallowed
- Parameters:
properties- properties that are not allowed when creating or altering a table.
-
setTablePropertiesDisallowedCSV
- Parameters:
properties- Comma-separated list of properties that are not allowed when creating or altering a table.
-
getTablePropertiesIgnored
- Returns:
- properties that are ignored when creating or altering a table.
-
getTablePropertiesIgnoredCSV
String getTablePropertiesIgnoredCSV()- Returns:
- Comma-separated list of properties that are ignored when creating or altering a table.
-
setTablePropertiesIgnored
- Parameters:
properties- properties that are ignored when creating or altering a table.
-
setTablePropertiesIgnoredCSV
- Parameters:
properties- Comma-separated list of properties that are ignored when creating or altering a table.
-
getUserTimestampsEnabled
boolean getUserTimestampsEnabled()Returns whether user-provided timestamps are allowed.- Returns:
trueif user-provided timestamps are allowed,falseotherwise.
-
setUserTimestampsEnabled
void setUserTimestampsEnabled(boolean enabled) Sets whether user-provided timestamps are allowed.- Parameters:
enabled-trueif user-provided timestamps are allowed,falseotherwise.
-
getAllowFilteringEnabled
boolean getAllowFilteringEnabled()Returns whether ALLOW FILTERING property is allowed.- Returns:
trueif ALLOW FILTERING is allowed,falseotherwise.
-
setAllowFilteringEnabled
void setAllowFilteringEnabled(boolean enabled) Sets whether ALLOW FILTERING is allowed.- Parameters:
enabled-trueif ALLOW FILTERING is allowed,falseotherwise.
-
getSimpleStrategyEnabled
boolean getSimpleStrategyEnabled()Returns whether SimpleStrategy is allowed on keyspace creation or alteration- Returns:
trueif SimpleStrategy is allowed;falseotherwise
-
setSimpleStrategyEnabled
void setSimpleStrategyEnabled(boolean enabled) Sets whether SimpleStrategy is allowed on keyspace creation or alteration- Parameters:
enabled-trueif SimpleStrategy is allowed,falseotherwise.
-
getUncompressedTablesEnabled
boolean getUncompressedTablesEnabled()Returns whether users can disable compression on tables- Returns:
trueif users can disable compression on a table,falseotherwise.
-
setUncompressedTablesEnabled
void setUncompressedTablesEnabled(boolean enabled) Sets whether users can disable compression on tables- Parameters:
enabled-trueif users can disable compression on a table,falseotherwise.
-
getCompactTablesEnabled
boolean getCompactTablesEnabled()Returns whether users can create new COMPACT STORAGE tables- Returns:
trueif allowed,falseotherwise.
-
setCompactTablesEnabled
void setCompactTablesEnabled(boolean enabled) Sets whether users can create new COMPACT STORAGE tables- Parameters:
enabled-trueif allowed,falseotherwise.
-
getAlterTableEnabled
boolean getAlterTableEnabled()Gets whether users can use the ALTER TABLE statement to change columns- Returns:
trueif ALTER TABLE is allowed,falseotherwise.
-
setAlterTableEnabled
void setAlterTableEnabled(boolean enabled) Sets whether users can use the ALTER TABLE statement to change columns- Parameters:
enabled-trueif changing columns is allowed,falseotherwise.
-
getGroupByEnabled
boolean getGroupByEnabled()Returns whether GROUP BY queries are allowed.- Returns:
trueif allowed,falseotherwise.
-
setGroupByEnabled
void setGroupByEnabled(boolean enabled) Sets whether GROUP BY queries are allowed.- Parameters:
enabled-trueif allowed,falseotherwise.
-
getDropTruncateTableEnabled
boolean getDropTruncateTableEnabled()Returns whether users can TRUNCATE or DROP TABLE- Returns:
trueif allowed,falseotherwise.
-
setDropTruncateTableEnabled
void setDropTruncateTableEnabled(boolean enabled) Sets whether users can TRUNCATE or DROP TABLE -
getDropKeyspaceEnabled
boolean getDropKeyspaceEnabled()Returns whether users can DROP a keyspace- Returns:
trueif allowed,falseotherwise.
-
setDropKeyspaceEnabled
void setDropKeyspaceEnabled(boolean enabled) Sets whether users can DROP a keyspace -
getPageSizeWarnThreshold
int getPageSizeWarnThreshold()- Returns:
- The threshold to warn when requested page size greater than threshold. -1 means disabled.
-
getPageSizeFailThreshold
int getPageSizeFailThreshold()- Returns:
- The threshold to prevent requesting page with more elements than threshold. -1 means disabled.
-
setPageSizeThreshold
void setPageSizeThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when the requested page size is greater than threshold. -1 means disabled.fail- The threshold to prevent requesting pages with more elements than threshold. -1 means disabled.
-
getReadBeforeWriteListOperationsEnabled
boolean getReadBeforeWriteListOperationsEnabled()Returns whether list operations that require read before write are allowed.- Returns:
trueif list operations that require read before write are allowed,falseotherwise.
-
setReadBeforeWriteListOperationsEnabled
void setReadBeforeWriteListOperationsEnabled(boolean enabled) Sets whether list operations that require read before write are allowed.- Parameters:
enabled-trueif list operations that require read before write are allowed,falseotherwise.
-
getPartitionKeysInSelectWarnThreshold
int getPartitionKeysInSelectWarnThreshold()- Returns:
- The threshold to warn when the number of partition keys in a select statement greater than threshold. -1 means disabled.
-
getPartitionKeysInSelectFailThreshold
int getPartitionKeysInSelectFailThreshold()- Returns:
- The threshold to fail when the number of partition keys in a select statement greater than threshold. -1 means disabled.
-
setPartitionKeysInSelectThreshold
void setPartitionKeysInSelectThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when the number of partition keys in a select statement is greater than threshold -1 means disabled.fail- The threshold to prevent when the number of partition keys in a select statement is more than threshold -1 means disabled.
-
getInSelectCartesianProductWarnThreshold
int getInSelectCartesianProductWarnThreshold()- Returns:
- The threshold to warn when an IN query creates a cartesian product with a size exceeding threshold. -1 means disabled.
-
getInSelectCartesianProductFailThreshold
int getInSelectCartesianProductFailThreshold()- Returns:
- The threshold to prevent IN queries creating a cartesian product with a size exceeding threshold. -1 means disabled.
-
setInSelectCartesianProductThreshold
void setInSelectCartesianProductThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when an IN query creates a cartesian product with a size exceeding threshold. -1 means disabled.fail- The threshold to prevent IN queries creating a cartesian product with a size exceeding threshold. -1 means disabled.
-
getReadConsistencyLevelsWarned
- Returns:
- consistency levels that are warned about when reading.
-
getReadConsistencyLevelsWarnedCSV
String getReadConsistencyLevelsWarnedCSV()- Returns:
- Comma-separated list of consistency levels that are warned about when reading.
-
setReadConsistencyLevelsWarned
- Parameters:
consistencyLevels- consistency levels that are warned about when reading.
-
setReadConsistencyLevelsWarnedCSV
- Parameters:
consistencyLevels- Comma-separated list of consistency levels that are warned about when reading.
-
getReadConsistencyLevelsDisallowed
- Returns:
- consistency levels that are not allowed when reading.
-
getReadConsistencyLevelsDisallowedCSV
String getReadConsistencyLevelsDisallowedCSV()- Returns:
- Comma-separated list of consistency levels that are not allowed when reading.
-
setReadConsistencyLevelsDisallowed
- Parameters:
consistencyLevels- consistency levels that are not allowed when reading.
-
setReadConsistencyLevelsDisallowedCSV
- Parameters:
consistencyLevels- Comma-separated list of consistency levels that are not allowed when reading.
-
getWriteConsistencyLevelsWarned
- Returns:
- consistency levels that are warned about when writing.
-
getWriteConsistencyLevelsWarnedCSV
String getWriteConsistencyLevelsWarnedCSV()- Returns:
- Comma-separated list of consistency levels that are warned about when writing.
-
setWriteConsistencyLevelsWarned
- Parameters:
consistencyLevels- consistency levels that are warned about when writing.
-
setWriteConsistencyLevelsWarnedCSV
- Parameters:
consistencyLevels- Comma-separated list of consistency levels that are warned about when writing.
-
getWriteConsistencyLevelsDisallowed
- Returns:
- consistency levels that are not allowed when writing.
-
getWriteConsistencyLevelsDisallowedCSV
String getWriteConsistencyLevelsDisallowedCSV()- Returns:
- Comma-separated list of consistency levels that are not allowed when writing.
-
setWriteConsistencyLevelsDisallowed
- Parameters:
consistencyLevels- consistency levels that are not allowed when writing.
-
setWriteConsistencyLevelsDisallowedCSV
- Parameters:
consistencyLevels- Comma-separated list of consistency levels that are not allowed when writing.
-
getPartitionSizeWarnThreshold
- Returns:
- The threshold to warn when encountering partitions larger than threshold, as a string formatted as in,
for example,
10GiB,20MiB,30KiBor40B. Anullvalue means disabled.
-
getPartitionSizeFailThreshold
- Returns:
- The threshold to fail when encountering partitions larger than threshold, as a string formatted as in,
for example,
10GiB,20MiB,30KiBor40B. Anullvalue means disabled. Triggering a failure emits a log message and a diagnostic event, but it doesn't throw an exception interrupting the offending sstable write.
-
setPartitionSizeThreshold
- Parameters:
warnSize- The threshold to warn when encountering partitions larger than threshold, as a string formatted as in, for example,10GiB,20MiB,30KiBor40B. Anullvalue means disabled.failSize- The threshold to fail when encountering partitions larger than threshold, as a string formatted as in, for example,10GiB,20MiB,30KiBor40B. Anullvalue means disabled. Triggering a failure emits a log message and a diagnostic event, but it desn't throw an exception interrupting the offending sstable write.
-
getPartitionTombstonesWarnThreshold
long getPartitionTombstonesWarnThreshold()- Returns:
- The threshold to warn when encountering partitions with more tombstones than threshold. -1 means disabled.
-
getPartitionTombstonesFailThreshold
long getPartitionTombstonesFailThreshold()- Returns:
- The threshold to fail when encountering partitions with more tombstones than threshold. -1 means disabled. Triggering a failure emits a log message and a diagnostic event, but it doesn't throw an exception interrupting the offending sstable write.
-
setPartitionTombstonesThreshold
void setPartitionTombstonesThreshold(long warn, long fail) - Parameters:
warn- The threshold to warn when encountering partitions with more tombstones than threshold. -1 means disabled.fail- The threshold to fail when encountering partitions with more tombstones than threshold. -1 means disabled. Triggering a failure emits a log message and a diagnostic event, but it desn't throw an exception interrupting the offending sstable write.
-
getColumnValueSizeWarnThreshold
- Returns:
- The threshold to warn when encountering column values larger than threshold, as a string formatted as
in, for example,
10GiB,20MiB,30KiBor40B. Anullvalue means disabled.
-
getColumnValueSizeFailThreshold
- Returns:
- The threshold to prevent column values larger than threshold, as a string formatted as in, for example,
10GiB,20MiB,30KiBor40B. Anullvalue means disabled.
-
setColumnValueSizeThreshold
- Parameters:
warnSize- The threshold to warn when encountering column values larger than threshold, as a string formatted as in, for example,10GiB,20MiB,30KiBor40B. Anullvalue means disabled.failSize- The threshold to prevent column values larger than threshold, as a string formatted as in, for example,10GiB,20MiB,30KiBor40B. Anullvalue means disabled.
-
getCollectionSizeWarnThreshold
- Returns:
- The threshold to warn when encountering larger size of collection data than threshold, as a string
formatted as in, for example,
10GiB,20MiB,30KiBor40B. Anullvalue means that the threshold is disabled.
-
getCollectionSizeFailThreshold
- Returns:
- The threshold to prevent collections with larger data size than threshold, as a string formatted as in,
for example,
10GiB,20MiB,30KiBor40B. Anullvalue means that the threshold is disabled.
-
setCollectionSizeThreshold
- Parameters:
warnSize- The threshold to warn when encountering larger size of collection data than threshold, as a string formatted as in, for example,10GiB,20MiB,30KiBor40B. Anullvalue means disabled.failSize- The threshold to prevent collections with larger data size than threshold, as a string formatted as in, for example,10GiB,20MiB,30KiBor40B. Anullvalue means disabled.
-
getItemsPerCollectionWarnThreshold
int getItemsPerCollectionWarnThreshold()- Returns:
- The threshold to warn when encountering more elements in a collection than threshold.
-
getItemsPerCollectionFailThreshold
int getItemsPerCollectionFailThreshold()- Returns:
- The threshold to prevent collections with more elements than threshold.
-
setItemsPerCollectionThreshold
void setItemsPerCollectionThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when encountering more elements in a collection than threshold.fail- The threshold to prevent collectiosn with more elements than threshold.
-
getFieldsPerUDTWarnThreshold
int getFieldsPerUDTWarnThreshold()- Returns:
- The threshold to warn when creating a UDT with more fields than threshold. -1 means disabled.
-
getFieldsPerUDTFailThreshold
int getFieldsPerUDTFailThreshold()- Returns:
- The threshold to fail when creating a UDT with more fields than threshold. -1 means disabled.
-
setFieldsPerUDTThreshold
void setFieldsPerUDTThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when creating a UDT with more fields than threshold. -1 means disabled.fail- The threshold to prevent creating a UDT with more fields than threshold. -1 means disabled.
-
getVectorDimensionsWarnThreshold
int getVectorDimensionsWarnThreshold()- Returns:
- The threshold to warn when creating a vector with more dimensions than threshold.
-
getVectorDimensionsFailThreshold
int getVectorDimensionsFailThreshold()- Returns:
- The threshold to fail when creating a vector with more dimensions than threshold.
-
setVectorDimensionsThreshold
void setVectorDimensionsThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when creating a vector with more dimensions than threshold.fail- The threshold to prevent creating a vector with more dimensions than threshold.
-
setVectorTypeEnabled
void setVectorTypeEnabled(boolean enabled) - Parameters:
enabled-trueif vector type usage is enabled.
-
getVectorTypeEnabled
boolean getVectorTypeEnabled()- Returns:
trueif vector type usage is enabled.
-
getDataDiskUsagePercentageWarnThreshold
int getDataDiskUsagePercentageWarnThreshold()- Returns:
- The threshold to warn when local data disk usage percentage exceeds that threshold.
Allowed values are in the range
[1, 100], and -1 means disabled.
-
getDataDiskUsagePercentageFailThreshold
int getDataDiskUsagePercentageFailThreshold()- Returns:
- The threshold to fail when local data disk usage percentage exceeds that threshold.
Allowed values are in the range
[1, 100], and -1 means disabled.
-
setDataDiskUsagePercentageThreshold
void setDataDiskUsagePercentageThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when local disk usage percentage exceeds that threshold. Allowed values are in the range[1, 100], and -1 means disabled.fail- The threshold to fail when local disk usage percentage exceeds that threshold. Allowed values are in the range[1, 100], and -1 means disabled.
-
getDataDiskUsageMaxDiskSize
- Returns:
- The max disk size of the data directories when calculating disk usage thresholds, as a string formatted
as in, for example,
10GiB,20MiB,30KiBor40B. Anullvalue means disabled.
-
setDataDiskUsageMaxDiskSize
- Parameters:
size- The max disk size of the data directories when calculating disk usage thresholds, as a string formatted as in, for example,10GiB,20MiB,30KiBor40B. Anullvalue means disabled.
-
getMinimumReplicationFactorWarnThreshold
int getMinimumReplicationFactorWarnThreshold()- Returns:
- The threshold to warn when replication factor is lesser than threshold.
-
getMinimumReplicationFactorFailThreshold
int getMinimumReplicationFactorFailThreshold()- Returns:
- The threshold to fail when replication factor is lesser than threshold.
-
setMinimumReplicationFactorThreshold
void setMinimumReplicationFactorThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when the minimum replication factor is lesser than threshold. -1 means disabled.fail- The threshold to fail when the minimum replication factor is lesser than threshold. -1 means disabled.
-
getMaximumReplicationFactorWarnThreshold
int getMaximumReplicationFactorWarnThreshold()- Returns:
- The threshold to fail when replication factor is greater than threshold.
-
getMaximumReplicationFactorFailThreshold
int getMaximumReplicationFactorFailThreshold()- Returns:
- The threshold to fail when replication factor is greater than threshold.
-
setMaximumReplicationFactorThreshold
void setMaximumReplicationFactorThreshold(int warn, int fail) - Parameters:
warn- The threshold to warn when the maximum replication factor is greater than threshold. -1 means disabled.fail- The threshold to fail when the maximum replication factor is greater than threshold. -1 means disabled.
-
getZeroTTLOnTWCSWarned
boolean getZeroTTLOnTWCSWarned()Returns whether warnings will be emitted when usage of 0 default TTL on a table with TimeWindowCompactionStrategy is detected.- Returns:
trueif warnings will be emitted,falseotherwise.
-
setZeroTTLOnTWCSWarned
void setZeroTTLOnTWCSWarned(boolean value) Sets whether warnings will be emitted when usage of 0 default TTL on a table with TimeWindowCompactionStrategy is detected.- Parameters:
value-trueif warning will be emitted,falseotherwise.
-
getZeroTTLOnTWCSEnabled
boolean getZeroTTLOnTWCSEnabled()Returns whether it is allowed to create or alter table to use 0 default TTL with TimeWindowCompactionStrategy. If it is not, such query will fail.- Returns:
trueif 0 default TTL is allowed on TWCS table,falseotherwise.
-
setZeroTTLOnTWCSEnabled
void setZeroTTLOnTWCSEnabled(boolean value) Sets whether users can use 0 default TTL on a table with TimeWindowCompactionStrategy.- Parameters:
value-trueif 0 default TTL on TWCS tables is allowed,falseotherwise.
-
getMaximumTimestampWarnThreshold
- Returns:
- The highest acceptable difference between now and the written value timestamp before triggering a warning.
Expressed as a string formatted as in, for example,
10s20m,30hor40d. Anullvalue means disabled.
-
getMaximumTimestampFailThreshold
- Returns:
- The highest acceptable difference between now and the written value timestamp before triggering a failure.
Expressed as a string formatted as in, for example,
10s20m,30hor40d. Anullvalue means disabled.
-
setMaximumTimestampThreshold
Sets the warning upper bound for user supplied timestamps.- Parameters:
warnDuration- The highest acceptable difference between now and the written value timestamp before triggering a warning. Expressed as a string formatted as in, for example,10s,20m,30hor40d. Anullvalue means disabled.failDuration- The highest acceptable difference between now and the written value timestamp before triggering a failure. Expressed as a string formatted as in, for example,10s,20m,30hor40d. Anullvalue means disabled.
-
getMinimumTimestampWarnThreshold
- Returns:
- The lowest acceptable difference between now and the written value timestamp before triggering a warning.
Expressed as a string formatted as in, for example,
10s20m,30hor40d. Anullvalue means disabled.
-
getMinimumTimestampFailThreshold
- Returns:
- The lowest acceptable difference between now and the written value timestamp before triggering a failure.
Expressed as a string formatted as in, for example,
10s20m,30hor40d. Anullvalue means disabled.
-
setMinimumTimestampThreshold
Sets the warning lower bound for user supplied timestamps.- Parameters:
warnDuration- The lowest acceptable difference between now and the written value timestamp before triggering a warning. Expressed as a string formatted as in, for example,10s,20m,30hor40d. Anullvalue means disabled.failDuration- The lowest acceptable difference between now and the written value timestamp before triggering a failure. Expressed as a string formatted as in, for example,10s,20m,30hor40d. Anullvalue means disabled.
-
getSaiSSTableIndexesPerQueryWarnThreshold
int getSaiSSTableIndexesPerQueryWarnThreshold()- Returns:
- the warning threshold for the number of SAI SSTable indexes searched by a query
-
getSaiSSTableIndexesPerQueryFailThreshold
int getSaiSSTableIndexesPerQueryFailThreshold()- Returns:
- the failure threshold for the number of SAI SSTable indexes searched by a query
-
setSaiSSTableIndexesPerQueryThreshold
void setSaiSSTableIndexesPerQueryThreshold(int warn, int fail) Sets warning and failure thresholds for the number of SAI SSTable indexes searched by a query- Parameters:
warn- value to set for warn thresholdfail- value to set for fail threshold
-
getSaiStringTermSizeWarnThreshold
- Returns:
- The warning threshold for string terms written to an SAI index, as a human-readable string.
(ex.
10GiB,20MiB,30KiBor40B) Anullvalue means disabled.
-
getSaiStringTermSizeFailThreshold
- Returns:
- The failure threshold for string terms written to an SAI index, as a human-readable string.
(ex.
10GiB,20MiB,30KiBor40B) Anullvalue means disabled.
-
setSaiStringTermSizeThreshold
- Parameters:
warnSize- The warning threshold for string terms written to an SAI index, as a human-readable string. (ex.10GiB,20MiB,30KiBor40B) Anullvalue means disabled.failSize- The failure threshold for string terms written to an SAI index, as a human-readable string. (ex.10GiB,20MiB,30KiBor40B) Anullvalue means disabled.
-
getSaiFrozenTermSizeWarnThreshold
- Returns:
- The warning threshold for frozen terms written to an SAI index, as a human-readable string.
(ex.
10GiB,20MiB,30KiBor40B) Anullvalue means disabled.
-
getSaiFrozenTermSizeFailThreshold
- Returns:
- The failure threshold for frozen terms written to an SAI index, as a human-readable string.
(ex.
10GiB,20MiB,30KiBor40B) Anullvalue means disabled.
-
setSaiFrozenTermSizeThreshold
- Parameters:
warnSize- The warning threshold for frozen terms written to an SAI index, as a human-readable string. (ex.10GiB,20MiB,30KiBor40B) Anullvalue means disabled.failSize- The failure threshold for frozen terms written to an SAI index, as a human-readable string. (ex.10GiB,20MiB,30KiBor40B) Anullvalue means disabled.
-
getSaiVectorTermSizeWarnThreshold
- Returns:
- The warning threshold for vector terms written to an SAI index, as a human-readable string.
(ex.
10GiB,20MiB,30KiBor40B) Anullvalue means disabled.
-
getSaiVectorTermSizeFailThreshold
- Returns:
- The failure threshold for vector terms written to an SAI index, as a human-readable string.
(ex.
10GiB,20MiB,30KiBor40B) Anullvalue means disabled.
-
setSaiVectorTermSizeThreshold
- Parameters:
warnSize- The warning threshold for vector terms written to an SAI index, as a human-readable string. (ex.10GiB,20MiB,30KiBor40B) Anullvalue means disabled.failSize- The failure threshold for vector terms written to an SAI index, as a human-readable string. (ex.10GiB,20MiB,30KiBor40B) Anullvalue means disabled.
-
getNonPartitionRestrictedQueryEnabled
boolean getNonPartitionRestrictedQueryEnabled()Returns whether it is possible to execute a query against secondary indexes without specifying any partition key restrictions.- Returns:
- true if it is possible to execute a query without a partition key, false otherwise
-
setNonPartitionRestrictedQueryEnabled
void setNonPartitionRestrictedQueryEnabled(boolean enabled) Sets whether it is possible to execute a query against indexes (secondary or SAI) without specifying any partition key restrictions.- Parameters:
enabled-trueif a query without partition key is enabled or not
-
getIntersectFilteringQueryWarned
boolean getIntersectFilteringQueryWarned()- Returns:
- true if a client warning is emitted for a filtering query with an intersection on mutable columns at a consistency level requiring coordinator reconciliation
-
setIntersectFilteringQueryWarned
void setIntersectFilteringQueryWarned(boolean value) -
getIntersectFilteringQueryEnabled
boolean getIntersectFilteringQueryEnabled()- Returns:
- true if it is possible to execute a filtering query with an intersection on mutable columns at a consistency level requiring coordinator reconciliation
-
setIntersectFilteringQueryEnabled
void setIntersectFilteringQueryEnabled(boolean value)
-