Clustering layers in multi-node clusters
AssigneeHewlett Packard Enterprise Development LP
InventorsChiu Wai Tsang, Christopher Johnson
Life of this patent
Estimating the term…
Abstract
Examples include a multi-node cluster having a node with a clustering layer. The clustering layer may be located between an application programming interface (API) layer and a service layer and the multi-node cluster may be associated with a database. In some examples, the clustering layer may discover whether a number of nodes associated with the multi-node cluster has changed. Based, at least in part, on the determination that the number of nodes associated with the multi-node cluster has changed, at the clustering layer, the database may be sharded and a new API call may be issued to the API layer.
Claims20
A node of a multi-node cluster comprising:
- a processing resource;
- and
- a non-transitory machine-readable storage medium comprising instructions executable by the processing resource to:
- receive, at an application programming interface (API) layer, an API call to access a database and forward the API call to a service layer;
- intercept the API call from the API layer at a clustering layer between the API layer and the service layer;
- perform, at the clustering layer, at least one of sharding the database or forwarding the API call;
- and
- access the database at a data access object layer.
An article comprising at least one non-transitory machine-readable storage medium comprising instructions executable by a processing resource of a node of a multi-node cluster to:
- receive, at an API layer, an application programming interface (API) call and forward the API call to a service layer;
- intercept, at a clustering layer, the API call from the API layer;
- determine whether the API call is at least one of a request to create a database resource in a database, retrieve the database resource from the database, or delete the database resource from the database;
- based on the determination that the API call is at least one of the request to create, to retrieve, or to delete the database resource, determine a location of the database resource;
- based on the determination that the API call is the request to create the database resource and based on the determination that the location of the database resource is the node, at the clustering layer, shard the database and forward the API call to the service layer.
A method comprising:
- discovering, by a processing resource of a node of a multi-node cluster, at a clustering layer between an application programming interface (API) layer and a service layer, whether a number of nodes associated with the multi-node cluster has changed;
- and
- based on the discovery that the number of nodes associated with the multi-node cluster has changed, at the clustering layer, sharding the database and issuing a new API call to the API layer.
Dependencies are inferred from the claim text.