Change segment clean up period

Jun 2017

First packager I setup only had a small area for storage of segments (around 8GB) and the drive would constantly fill up. There are a couple of processes that run, the first creates new segments, the second cleans up old ones (depending on DVR period). To speed up the clean up process (so that no so many old segments are kept) I had to make a change to the configuration file /opt/mfvp/packaging-dvr-recorder/etc/packaging-dvr-recorder.json
Open this file and look for the line “periodDuration”:3600, change period duration from 3600 to 360. This sets the DVR to 15 minutes.
<sxh [py][; options for SyntaxHighlighter]> {

"serverId": "server_0",
"dataBase":{
"type":"mongo",
"access": {
"url": "mongodb://127.0.0.1:27017/halodb?maxPoolSize=2"
}
},
"fileAccess" : {
"mountFolder": "/opt/mfvp/mnt"
},
"dvrManager" :{
"debug":false,
"recorder":
{
"tsPartDuration":2000,
"periodDuration":360,
"deletionSpeed":1.2
},
"statistics": {
"redisSocketPath": {
"port": 6381,
"host": "127.0.0.1"
}
},
"log":
{
"traces":"/var/log/mfvp/packaging-dvr-recorder/private",
"dump":"/var/log/mfvp/packaging-dvr-recorder/private",
"apiAccessLogs":
{
"period":3600,
"count":169,
"access":"/var/log/mfvp/packaging-dvr-recorder"
}
}
},
"interface": {
"http": {
"port": 8051
}
},
"alarm": {
"redisSocket": "/var/lib/envivio/alarm/alarm.sock"
}

} </sxh>