- Joined
- May 16, 2019
- Messages
- 93
- Reaction score
- 46
Ok. Just a lesson learned (kind of the hard way)
on step 2 here: https://www.3cx.com/docs/google-cloud-storage/
it says "Storage class - select the appropriate storage class for your use."
It SHOULD say "only use STANDARD storage!"
Do NOT change the default storage class of your Google Storage buckets to nearline or even worse Coldline or Archive in an effort to save money. 3cx backup rotation does not appear to be compatible with Google storage nearline storage class or any other storage class with a minimum retention fee.
Every night, it will move/copy your previous backup to a new file name and the way that Google bills you for nearline, coldline, or archive means that you are charged for an early delete operation and file read on that object. Even though it still exists, and the file name simply changed Google will charge you an early delete fee for the remaining minimum usage plus the cost to read that item when renaming it every day. So for Nearline you get billed for 29 extra days, for coldline you would be billed for 89 days, for archive 364 days of usage every night.
You effectively multiply your costs by 30x when using nearline. 90x for coldline, or 365x for archive. So if you are wondering why your Google Storage bill for 3cx backups is so bloody expensive this is the likely reason.
My suggestion:
3cx should change the way they use the google (and other cloud) storage to avoid renaming files every night and instead name the backups with the date and time stamp and then never touch the file again until your limit of backups is reached when it can then delete it.
This file rotation operation causes Google to charge each rename as a new object and because nearline has a 30 day retention minimum every day it charges you for a full 30 days on each renamed object.
Whatever 3cx is doing for file rotation, it should be updated to avoid any rename or copy operations.
on step 2 here: https://www.3cx.com/docs/google-cloud-storage/
it says "Storage class - select the appropriate storage class for your use."
It SHOULD say "only use STANDARD storage!"
Do NOT change the default storage class of your Google Storage buckets to nearline or even worse Coldline or Archive in an effort to save money. 3cx backup rotation does not appear to be compatible with Google storage nearline storage class or any other storage class with a minimum retention fee.
Every night, it will move/copy your previous backup to a new file name and the way that Google bills you for nearline, coldline, or archive means that you are charged for an early delete operation and file read on that object. Even though it still exists, and the file name simply changed Google will charge you an early delete fee for the remaining minimum usage plus the cost to read that item when renaming it every day. So for Nearline you get billed for 29 extra days, for coldline you would be billed for 89 days, for archive 364 days of usage every night.
You effectively multiply your costs by 30x when using nearline. 90x for coldline, or 365x for archive. So if you are wondering why your Google Storage bill for 3cx backups is so bloody expensive this is the likely reason.
My suggestion:
3cx should change the way they use the google (and other cloud) storage to avoid renaming files every night and instead name the backups with the date and time stamp and then never touch the file again until your limit of backups is reached when it can then delete it.
This file rotation operation causes Google to charge each rename as a new object and because nearline has a 30 day retention minimum every day it charges you for a full 30 days on each renamed object.
Whatever 3cx is doing for file rotation, it should be updated to avoid any rename or copy operations.