Insert Event Manually to force Usage Recalculation #9597
Replies: 3 comments 2 replies
-
@KuasarCloud you can add an event in the cloud.usage_event table. It will get copied to the cloud-usage.usage_event table and be process if the next job start at the period just before this event. This is quite tricky as old data is already in the tables. It is possible to delete old data in the intermediate table(s) and in the cloud_usage.cloud_usage table. In your case cloud_usage.usage_volume is important to check. in addition any events after your new event need to be set to unprocessed. your mileage may vary. simplest may be to just add the event for now and make it stop creating records in the future. Reconciling of usage is not well implemented. |
Beta Was this translation helpful? Give feedback.
-
Hey @DaanHoogland Thanks for your reply, is the any problem if create the id (sequential) and the uuid on the table event? by the way our management server, the database and the timezone un usage is set to America/Bogota, but the events on event tables have UTC, do you know how to change this behaviour? |
Beta Was this translation helpful? Give feedback.
-
Hi @DaanHoogland, While checking on the SELECT * FROM cloud_usage.usage_event
WHERE type LIKE '%LB%'
AND resource_id IN ('272','271','252','189','185','164');
The above results indicate that there are corresponding Could you please provide guidance? Thank you! |
Beta Was this translation helpful? Give feedback.
-
Hi Community,
As discussed in (#9439) and reported in (#9443), we’ve identified a situation where, if a public IP is released without first deleting a Load Balancer (LB) Rule, the system fails to generate the LB deletion event. As a result, the usage continues to charge for the LB Rule indefinitely.
Today, we encountered a similar issue where deleted volumes are still being charged in Usage, even though they no longer exist. We’re currently investigating the cause of this behavior and will report it as soon as we have more information.
In the meantime, I have a couple of questions:
Is it possible to manually add an entry in the event table and have the usage recalculated from a specific date?
If a project is suspended, does the usage continue to accumulate charges?
Looking forward to your insights.
Best regards,
Beta Was this translation helpful? Give feedback.
All reactions