Skip to content

Commit

Permalink
Online Archive - config and index
Browse files Browse the repository at this point in the history
  • Loading branch information
snarvaez committed Sep 2, 2023
1 parent 20ee873 commit 5bc69da
Show file tree
Hide file tree
Showing 3 changed files with 91 additions and 0 deletions.
41 changes: 41 additions & 0 deletions deployment/game_database/data_tiering/data_federation_config.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
49 changes: 49 additions & 0 deletions deployment/game_database/data_tiering/online_archive_config.json
Original file line number Diff line number Diff line change
@@ -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"
}
1 change: 1 addition & 0 deletions deployment/game_database/indexes.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
db.recordings.createIndex({ DateTime: 1 });

0 comments on commit 5bc69da

Please sign in to comment.