Measuring resource consumption in a multi-tenant platform-as-a-service (PaaS) system
First Claim
Patent Images
1. A method, comprising:
- determining, by a processing device, that a resource of an application of a multi-tenant Platform-as-a-Service (PaaS) system is initializing, the resource marked for usage tracking;
accessing a list of initialization operations used in the initialization of the resource;
performing initialization operations from the list until reaching a create usage record operation in the list;
determining that each of the initialization operations prior to a create usage record operation in the list of initialization operations is performed successfully;
creating, by the processing device, a usage record for the resource using the create usage record operation in response to determining that each of the initialization operations prior to the create usage record operation in the list of initialization operations has performed successfully; and
responsive to determining that at least one of the initialization operations prior to the create usage record operation in the list of initialization operations has failed, perform, by the processing device, a roll-back operation or a re-try operation for the failed initialization operation.
1 Assignment
0 Petitions
Accused Products
Abstract
Implementations for measuring resource consumption in a multi-tenant Platform-as-a-Service (PaaS) system are disclosed. A method of the disclosure includes determining, by a processing device, that a resource of an application of a multi-tenant Platform-as-a-Service (PaaS) system is initializing, the resource marked for usage tracking, accessing a list of initialization operations used in the initialization of the resource, determining that each of the initialization operations prior to a create usage record operation in the mapping are performed successfully, and creating a usage record for the resource using the create usage record operation.
9 Citations
20 Claims
-
1. A method, comprising:
-
determining, by a processing device, that a resource of an application of a multi-tenant Platform-as-a-Service (PaaS) system is initializing, the resource marked for usage tracking; accessing a list of initialization operations used in the initialization of the resource; performing initialization operations from the list until reaching a create usage record operation in the list; determining that each of the initialization operations prior to a create usage record operation in the list of initialization operations is performed successfully; creating, by the processing device, a usage record for the resource using the create usage record operation in response to determining that each of the initialization operations prior to the create usage record operation in the list of initialization operations has performed successfully; and responsive to determining that at least one of the initialization operations prior to the create usage record operation in the list of initialization operations has failed, perform, by the processing device, a roll-back operation or a re-try operation for the failed initialization operation. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8)
-
-
9. A system, comprising:
-
a memory; and a first processing device communicably coupled to the memory, the first processing device to; determine that a resource of an application of a multi-tenant Platform-as-a-Service (PaaS) system is initializing, the resource marked for usage tracking; access a list of initialization operations used in the initialization of the resource; perform initialization operations from the list until reaching a create usage record operation in the list; determine that each of the initialization operations prior to a create usage record operation in the list of initialization operations is performed successfully; create a usage record for the resource using the create usage record operation in response to determining that each of the initialization operations prior to the create usage record operation in the list of initialization operations has performed successfully; and in response to determining that at least one of the initialization operations prior to the create usage record operation in the list of initialization operations has failed, perform a roll-back operation or a re-try operation for the failed initialization operation. - View Dependent Claims (10, 11, 12, 13, 14, 15)
-
-
16. A non-transitory machine-readable storage medium including data that, when accessed by a processing device, cause the processing device to:
-
determine, by the processing device, that a resource of an application of a multi-tenant Platform-as-a-Service (PaaS) system is initializing, the resource marked for usage tracking; access a list of initialization operations used in the initialization of the resource; perform initialization operations from the list until reaching a create usage record operation in the list; determine that each of the initialization operations prior to a create usage record operation in the list of initialization operations is performed successfully; create, by the processing device, a usage record for the resource using the create usage record operation in response to determining that each of the initialization operations prior to the create usage record operation in the list of initialization operations has performed successfully, wherein the usage record comprises at least one of a user identifier (ID) associated with the application, a resource ID of the resource, a usage type of the resource, a duration of a usage of the resource, and a time stamp of a most recent update to the duration of the usage; responsive to determining that at least one of the initialization operations prior to the create usage record operation in the list of initialization operations has failed, perform a roll-back operation or a re-try operation for the failed initialization operation; and responsive to a synchronization time interval for the usage record expiring, send data of the usage record. - View Dependent Claims (17, 18, 19, 20)
-
Specification