Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Management of homer DB size #554

Open
matuskaacc opened this issue Jul 16, 2024 · 2 comments
Open

Management of homer DB size #554

matuskaacc opened this issue Jul 16, 2024 · 2 comments

Comments

@matuskaacc
Copy link

I have a total of 100GB to be used in the homer postgres database. I would like to configure it so that when it reaches 80% of this 100GB value (80GB), older SIP call recordings are deleted, maintaining a maximum of 80GB of occupancy in the database. I tried to configure this parameter DBPercentageUsage and DBMaxSize as below in heplify-server.toml file but without having any effect.

DBRotate = false
DBPartLog = "2h"
DBPartSip = "1h"
DBPartQos = "6h"
DBDropDays = 0
DBDropDaysCall = 0
DBDropDaysRegister = 0
DBDropDaysDefault = 0
DBDropOnStart = false
DBUsageProtection = true
DBUsageScheme = "percentage"
DBPercentageUsage = "80%"
DBMaxSize = "100GB"**
Dedup = false
DiscardMethod = ["REGISTER","NOTIFY","MESSAGE","OPTIONS"]
AlegIDs = []
CustomHeader = []
SIPHeader = []
LogDbg = ""
LogLvl = "info"
LogStd = false
LogSys = false
Config = "./heplify-server.toml"
ConfigHTTPAddr = ""

Examples:

@lmangani
Copy link
Member

Please paste some logs from a restart so we can check which actions are being taken by the core.

@matuskaacc
Copy link
Author

I created a script to manages the db size, thanks for de response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants