You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pegasus.apache.org by GitBox <gi...@apache.org> on 2022/03/24 11:31:33 UTC

[GitHub] [incubator-pegasus] empiredan opened a new issue #931: Feature: implement the counter

empiredan opened a new issue #931:
URL: https://github.com/apache/incubator-pegasus/issues/931


   In https://github.com/apache/incubator-pegasus/issues/922 it has been mentioned that a counter in essence is a 64-bit integer that can be incremented and decremented. It can be used to measure the number of tasks in queues, current number of running manual compacts, etc. All counters start out at 0.
   
   From the aspect of implementations, there are 2 kinds of counters:
   
   - One is the general type of Counter that are implemented by `striped_long_adder`, which can achieve high performance while consuming less memory if it's not updated very frequently.
   - Another uses `concurrent_long_adder` as the underlying implementation. It has higher performance while consuming more memory if it's updated very frequently.
   
   For the details of `striped_long_adder` and `concurrent_long_adder` please see https://github.com/apache/incubator-pegasus/issues/889.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org


[GitHub] [incubator-pegasus] empiredan closed issue #931: Feature: implement the counter

Posted by GitBox <gi...@apache.org>.
empiredan closed issue #931:
URL: https://github.com/apache/incubator-pegasus/issues/931


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@pegasus.apache.org
For additional commands, e-mail: dev-help@pegasus.apache.org