-
Notifications
You must be signed in to change notification settings - Fork 86
Bucketting of resources #38
Comments
I'd suggest the following:
That resource_type_id could also be used to lookup resource configurations as an alternative to resource_id, allowing you to define a single resource configuration for Submitting So, IMO adding a resource_type_id field should be a better approach for your use case. If that sounds like a sensible solution, I'll be happy to mentor and help somebody who would like to volunteer to contribute that enhancement. Thoughts? |
Any thoughts? |
Yes, I think its a good approach to have extra level of grouping resources by type (resource_type_id) and submit actual buildpack id. In addition to meeting this requirement, it will also allow to reduce number of resource definitions (as mentioned in #40). I'll be happy to work on the contribution to support that functionality. |
Thanks for volunteering to work on this! I'll assign the issue to you then :) |
@piotrprzybylski Well... It doesn't look like I'm allowed to assign the issue to you, maybe only you can assign it to yourself... Not sure. |
I think one needs to be a committer to have issue assigned to. I was not able to do it either. |
@piotrprzybylski I'm not following that part, and in particular why can't the resource provider just send the resource_type_id along with the resource_id in the submitted usage doc, instead of not sending it and then requiring yet another service to the mapping later? That sounds a bit complicated to me and I'm not quite understanding the value that would provide. Could you help me understand this better? |
The resource provider external to abacus can define and send both values, the resource_type_id and resource_id. The comment was about ability to customize resource types or grouping of resources for provider like cf bridge. |
@piotrprzybylski So if I understand what you're saying then a resource config could be associated with a resource_type_id (e.g. node) instead of a resource_id (e.g. node-0.10 and node-0.12) to cover multiple resource_ids of the same type? Did I get that right? |
Yes, that is correct, this could reduce number of needed resource configurations. |
Marking this as a future milestone for now, unless somebody volunteers to do it sooner. |
We are starting work on this contribution and will discuss details on the abacus mailing list. |
@piotrprzybylski, @sinduri, Any update on this? Do you still need any code changes in Abacus to group these resources by type? |
This is now implemented. Resource ids are mapped to resource_type ids and usage aggregated by resource_type. |
Bluemix BSS requires accumulation and aggregation across a group of resources(with same metrics).
For example, different versions of nodeJS (different resource-id) need to be accumulated and aggregated to the bucket(sdk-4-nodejs) or ruby, python, php runtimes usage to platform bucket.
How can we achieve this in abacus? Do we on board the metering and rating formulas to bucket-ids instead of the actual resource id?
The text was updated successfully, but these errors were encountered: