The expiration time for new job artifacts in CI/CD pipelines is now 30 days (GitLab default). Previously generated artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

Commit 99bc166a authored by Alessio Netti's avatar Alessio Netti
Browse files

Switching to TimeWindow Cassandra compaction strategy

parent f2e6a8bb
......@@ -42,6 +42,7 @@
#define KEYSPACE_NAME "dcdb"
#define CF_SENSORDATA "sensordata"
#define SENSORDATA_GC_GRACE_SECONDS "600"
#define SENSORDATA_COMPACTION "{'class' : 'TimeWindowCompactionStrategy', 'compaction_window_unit' : 'DAYS', 'compaction_window_size' : 1 }"
#define CONFIG_KEYSPACE_NAME KEYSPACE_NAME "_config"
#define CF_PUBLISHEDSENSORS "publishedsensors"
......
......@@ -488,7 +488,8 @@ bool ConnectionImpl::initSchema() {
createColumnFamily(CF_SENSORDATA,
"sid varchar, ws smallint, ts bigint, value bigint",
"sid, ws, ts",
"COMPACT STORAGE AND gc_grace_seconds = " SENSORDATA_GC_GRACE_SECONDS );
"COMPACT STORAGE AND gc_grace_seconds = " SENSORDATA_GC_GRACE_SECONDS
" AND compaction = " SENSORDATA_COMPACTION);
}
if (!existsColumnFamily(CF_VIRTUALSENSORS)) {
......@@ -496,7 +497,8 @@ bool ConnectionImpl::initSchema() {
createColumnFamily(CF_VIRTUALSENSORS,
"sid varchar, ws smallint, ts bigint, value bigint",
"sid, ws, ts",
"COMPACT STORAGE AND gc_grace_seconds = " SENSORDATA_GC_GRACE_SECONDS );
"COMPACT STORAGE AND gc_grace_seconds = " SENSORDATA_GC_GRACE_SECONDS
" AND compaction = " SENSORDATA_COMPACTION);
}
/* Keyspace and column family for job data */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment