You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nifi.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2015/11/30 17:00:12 UTC

[jira] [Commented] (NIFI-989) Support size() operation in distributed map cache

    [ https://issues.apache.org/jira/browse/NIFI-989?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15032004#comment-15032004 ] 

ASF GitHub Bot commented on NIFI-989:
-------------------------------------

Github user joemeszaros commented on the pull request:

    https://github.com/apache/nifi/pull/94#issuecomment-160670895
  
    Ok, so we should wait for the Java 8 migration. We can reopen the PR at any time.



> Support size() operation in distributed map cache
> -------------------------------------------------
>
>                 Key: NIFI-989
>                 URL: https://issues.apache.org/jira/browse/NIFI-989
>             Project: Apache NiFi
>          Issue Type: Improvement
>          Components: Core Framework
>            Reporter: Joe Mészáros
>            Priority: Minor
>              Labels: cache, command-line, distributed, improvement
>
> The distributed map cache server is a great tool for caching along with the cache client (DistributedMapCacheClientService), but after you configure and enable it, it is a black box. You are unable to get any information from the cache e.g how much entries live in the cache.
> The purpose of this issue to extend the cache interface and associated implementations to support the size() operation, which returns the number of 
> entries in the distributed cache. 
> It could be a first step in a direction of a more transparent cache, where the user can understand, what happens with the distributed cache. I mean after the size() operation, it could be really helpful to implement a stats() command, which s used to query the server about statistics it
> maintains and other internal data (e.g. evictions, hit rates, ...). 
> Similar to:
>  - memcached : https://docs.oracle.com/cd/E17952_01/refman-5.0-en/ha-memcached-stats-general.html
> - couchbase: http://blog.couchbase.com/monitoring-couchbase-cluster
> - redis: http://haydenjames.io/using-redis-stat-for-redis-statistics-tracking/
> I implemented a really simple command line tool, which can interact with the cache server from the command line, e.g. get a cache entry and it also able to get the size of the cache, which could be useful, when you would like to debug cache related problems, or just get basic interaction with the cache.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)