Skip to content

Commit

Permalink
Rename sleeper.table common properties to sleeper.common.table
Browse files Browse the repository at this point in the history
  • Loading branch information
kr565370 committed Mar 13, 2024
1 parent 7356a25 commit d8b7b6f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 28 deletions.
16 changes: 8 additions & 8 deletions example/full/instance.properties
Original file line number Diff line number Diff line change
Expand Up @@ -111,23 +111,23 @@ sleeper.metadata.s3.dynamo.pointintimerecovery=false

# This specifies whether point in time recovery is enabled for the Sleeper table index. This is set on
# the DynamoDB tables.
sleeper.tables.index.dynamo.pointintimerecovery=false

# The timeout in minutes for when the table properties provider cache should be cleared, forcing table
# properties to be reloaded from S3.
sleeper.table.properties.provider.timeout.minutes=60
sleeper.common.table.index.dynamo.pointintimerecovery=false

# This specifies whether queries and scans against the table index DynamoDB tables are strongly
# consistent.
sleeper.tables.index.dynamo.consistent.reads=true
sleeper.common.table.index.dynamo.consistent.reads=true

# The timeout in minutes for when the table properties provider cache should be cleared, forcing table
# properties to be reloaded from S3.
sleeper.common.table.properties.provider.timeout.minutes=60

# The amount of memory for lambdas that create batches of tables to run some operation against, eg.
# create compaction jobs, run garbage collection, perform partition splitting.
sleeper.table.batching.lambdas.memory=1024
sleeper.common.table.batching.lambdas.memory=1024

# The timeout in seconds for lambdas that create batches of tables to run some operation against, eg.
# create compaction jobs, run garbage collection, perform partition splitting.
sleeper.table.batching.lambdas.timeout.seconds=60
sleeper.common.table.batching.lambdas.timeout.seconds=60


## The following properties relate to standard ingest.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,36 +194,35 @@ public interface CommonProperty {
.validationPredicate(Utils::isTrueOrFalse)
.propertyGroup(InstancePropertyGroup.COMMON)
.runCdkDeployWhenChanged(true).build();
UserDefinedInstanceProperty TABLE_INDEX_DYNAMO_POINT_IN_TIME_RECOVERY = Index.propertyBuilder("sleeper.tables.index.dynamo.pointintimerecovery")
UserDefinedInstanceProperty TABLE_INDEX_DYNAMO_POINT_IN_TIME_RECOVERY = Index.propertyBuilder("sleeper.common.table.index.dynamo.pointintimerecovery")
.description("This specifies whether point in time recovery is enabled for the Sleeper table index. " +
"This is set on the DynamoDB tables.")
.defaultValue("false")
.validationPredicate(Utils::isTrueOrFalse)
.propertyGroup(InstancePropertyGroup.COMMON)
.runCdkDeployWhenChanged(true).build();

UserDefinedInstanceProperty TABLE_PROPERTIES_PROVIDER_TIMEOUT_IN_MINS = Index.propertyBuilder("sleeper.table.properties.provider.timeout.minutes")
.description("The timeout in minutes for when the table properties provider cache should be cleared, " +
"forcing table properties to be reloaded from S3.")
.defaultValue("60")
.validationPredicate(Utils::isPositiveInteger)
.propertyGroup(InstancePropertyGroup.COMMON)
.build();
UserDefinedInstanceProperty TABLE_INDEX_DYNAMO_STRONGLY_CONSISTENT_READS = Index.propertyBuilder("sleeper.tables.index.dynamo.consistent.reads")
UserDefinedInstanceProperty TABLE_INDEX_DYNAMO_STRONGLY_CONSISTENT_READS = Index.propertyBuilder("sleeper.common.table.index.dynamo.consistent.reads")
.description("This specifies whether queries and scans against the table index DynamoDB tables " +
"are strongly consistent.")
.defaultValue("true")
.validationPredicate(Utils::isTrueOrFalse)
.propertyGroup(InstancePropertyGroup.COMMON)
.build();
UserDefinedInstanceProperty TABLE_BATCHING_LAMBDAS_MEMORY_IN_MB = Index.propertyBuilder("sleeper.table.batching.lambdas.memory")
UserDefinedInstanceProperty TABLE_PROPERTIES_PROVIDER_TIMEOUT_IN_MINS = Index.propertyBuilder("sleeper.common.table.properties.provider.timeout.minutes")
.description("The timeout in minutes for when the table properties provider cache should be cleared, " +
"forcing table properties to be reloaded from S3.")
.defaultValue("60")
.validationPredicate(Utils::isPositiveInteger)
.propertyGroup(InstancePropertyGroup.COMMON)
.build();
UserDefinedInstanceProperty TABLE_BATCHING_LAMBDAS_MEMORY_IN_MB = Index.propertyBuilder("sleeper.common.table.batching.lambdas.memory")
.description("The amount of memory for lambdas that create batches of tables to run some operation against, " +
"eg. create compaction jobs, run garbage collection, perform partition splitting.")
.defaultValue("1024")
.validationPredicate(Utils::isPositiveInteger)
.propertyGroup(InstancePropertyGroup.COMMON)
.build();
UserDefinedInstanceProperty TABLE_BATCHING_LAMBDAS_TIMEOUT_IN_SECONDS = Index.propertyBuilder("sleeper.table.batching.lambdas.timeout.seconds")
UserDefinedInstanceProperty TABLE_BATCHING_LAMBDAS_TIMEOUT_IN_SECONDS = Index.propertyBuilder("sleeper.common.table.batching.lambdas.timeout.seconds")
.description("The timeout in seconds for lambdas that create batches of tables to run some operation against, " +
"eg. create compaction jobs, run garbage collection, perform partition splitting.")
.defaultValue("60")
Expand Down
16 changes: 8 additions & 8 deletions scripts/templates/instanceproperties.template
Original file line number Diff line number Diff line change
Expand Up @@ -152,23 +152,23 @@ sleeper.metadata.s3.dynamo.pointintimerecovery=false

# This specifies whether point in time recovery is enabled for the Sleeper table index. This is set on
# the DynamoDB tables.
sleeper.tables.index.dynamo.pointintimerecovery=false

# The timeout in minutes for when the table properties provider cache should be cleared, forcing table
# properties to be reloaded from S3.
sleeper.table.properties.provider.timeout.minutes=60
sleeper.common.table.index.dynamo.pointintimerecovery=false

# This specifies whether queries and scans against the table index DynamoDB tables are strongly
# consistent.
sleeper.tables.index.dynamo.consistent.reads=true
sleeper.common.table.index.dynamo.consistent.reads=true

# The timeout in minutes for when the table properties provider cache should be cleared, forcing table
# properties to be reloaded from S3.
sleeper.common.table.properties.provider.timeout.minutes=60

# The amount of memory for lambdas that create batches of tables to run some operation against, eg.
# create compaction jobs, run garbage collection, perform partition splitting.
sleeper.table.batching.lambdas.memory=1024
sleeper.common.table.batching.lambdas.memory=1024

# The timeout in seconds for lambdas that create batches of tables to run some operation against, eg.
# create compaction jobs, run garbage collection, perform partition splitting.
sleeper.table.batching.lambdas.timeout.seconds=60
sleeper.common.table.batching.lambdas.timeout.seconds=60


## The following properties relate to standard ingest.
Expand Down

0 comments on commit d8b7b6f

Please sign in to comment.