From 5bc69da3b96d0183a6654afac9ce38a7d6ca4ad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sig=20Narv=C3=A1ez?= Date: Fri, 1 Sep 2023 19:50:57 -0700 Subject: [PATCH] Online Archive - config and index --- .../data_tiering/data_federation_config.json | 41 ++++++++++++++++ .../data_tiering/online_archive_config.json | 49 +++++++++++++++++++ deployment/game_database/indexes.js | 1 + 3 files changed, 91 insertions(+) create mode 100644 deployment/game_database/data_tiering/data_federation_config.json create mode 100644 deployment/game_database/data_tiering/online_archive_config.json create mode 100644 deployment/game_database/indexes.js diff --git a/deployment/game_database/data_tiering/data_federation_config.json b/deployment/game_database/data_tiering/data_federation_config.json new file mode 100644 index 0000000..155f76b --- /dev/null +++ b/deployment/game_database/data_tiering/data_federation_config.json @@ -0,0 +1,41 @@ +{ + "databases": [ + { + "collections": [ + { + "name": "recordings", + "dataSources": [ + { + "collection": "recordings", + "database": "Leafsteroids", + "storeName": "demo" + }, + { + "datasetName": "v1$atlas$archive$demo$Leafsteroids$3ee18b87-dc43-4ac6-a393-44fee2aa11d2$64e6af7091174970cc3fbb4a", + "storeName": "aws-dls-store-us-east-1" + } + ] + } + ], + "name": "Leafsteroids", + "views": [] + } + ], + "stores": [ + { + "clusterName": "demo", + "name": "demo", + "projectId": "5ead7a92758e00636bc31452", + "provider": "atlas", + "readPreference": { + "mode": "secondaryPreferred", + "tagSets": [] + } + }, + { + "name": "aws-dls-store-us-east-1", + "provider": "dls:aws", + "region": "us-east-1" + } + ] +} \ No newline at end of file diff --git a/deployment/game_database/data_tiering/online_archive_config.json b/deployment/game_database/data_tiering/online_archive_config.json new file mode 100644 index 0000000..4d708a2 --- /dev/null +++ b/deployment/game_database/data_tiering/online_archive_config.json @@ -0,0 +1,49 @@ +{ + "_id": "64e6af7091174970cc3fbb4a", + "clusterName": "demo", + "collName": "recordings", + "collectionType": "STANDARD", + "criteria": { + "dateField": "DateTime", + "dateFormat": "ISODATE", + "expireAfterDays": 30, + "type": "DATE" + }, + "dataExpirationRule": { + "expireAfterDays": 1825 + }, + "dataProcessRegion": { + "cloudProvider": "AWS", + "region": "US_EAST_1" + }, + "dataSetName": "v1$atlas$archive$demo$Leafsteroids$3ee18b87-dc43-4ac6-a393-44fee2aa11d2$64e6af7091174970cc3fbb4a", + "dbName": "Leafsteroids", + "groupId": "5ead7a92758e00636bc31452", + "lastArchiveRun": { + "endDate": "2023-08-24T06:54:38Z", + "errorMessage": null, + "startDate": "2023-08-24T06:54:38Z" + }, + "partitionFields": [{ + "fieldName": "location", + "fieldType": null, + "order": 0 + }, { + "fieldName": "Event._id", + "fieldType": null, + "order": 1 + }, { + "fieldName": "DateTime", + "fieldType": null, + "order": 2 + }], + "paused": false, + "schedule": { + "endHour": 0, + "endMinute": 0, + "startHour": 18, + "startMinute": 20, + "type": "DAILY" + }, + "state": "ACTIVE" +} \ No newline at end of file diff --git a/deployment/game_database/indexes.js b/deployment/game_database/indexes.js new file mode 100644 index 0000000..6570b5c --- /dev/null +++ b/deployment/game_database/indexes.js @@ -0,0 +1 @@ +db.recordings.createIndex({ DateTime: 1 }); \ No newline at end of file