public interface HBaseIndexQPSResourceAllocator extends Serializable
HBaseIndexQPSResourceAllocator defines methods to manage resource allocation for HBase index operations.| Modifier and Type | Method and Description |
|---|---|
float |
acquireQPSResources(float desiredQPSFraction,
long numPuts)
This method acquires the requested QPS Fraction against HBase cluster for index operation.
|
float |
calculateQPSFractionForPutsTime(long numPuts,
int desiredPutsTimeInSecs)
This method returns the QPS Fraction value that needs to be acquired such that the respective HBase index operation
can be completed in desiredPutsTime.
|
void |
releaseQPSResources()
This method releases the acquired QPS Fraction.
|
float calculateQPSFractionForPutsTime(long numPuts,
int desiredPutsTimeInSecs)
numPuts - Number of inserts to be written to HBase indexdesiredPutsTimeInSecs - Total expected time for the HBase inserts operationfloat acquireQPSResources(float desiredQPSFraction,
long numPuts)
desiredQPSFraction - QPS fraction that needs to be requested and acquirednumPuts - Number of inserts to be written to HBase indexvoid releaseQPSResources()
Copyright © 2022 The Apache Software Foundation. All rights reserved.