Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Searchable Snapshot] Expose local file system cache stats into node stats #5982

Closed
aabukhalil opened this issue Jan 23, 2023 · 1 comment · Fixed by #6333
Closed

[Searchable Snapshot] Expose local file system cache stats into node stats #5982

aabukhalil opened this issue Jan 23, 2023 · 1 comment · Fixed by #6333
Assignees
Labels
distributed framework enhancement Enhancement or improvement to existing feature or request

Comments

@aabukhalil
Copy link
Contributor

Referring to #4964

Expose all file system cache stats (usage, activeUsage, hitCount, missCount, ...) into NodeStats API. Stats already exist as POJOs and computed correctly but we need to include them in node stats.

@kotwanikunal
Copy link
Member

API: GET <node_url>/_nodes/stats/file_cache

Sample output:

{
    "_nodes": {
        "total": 1,
        "successful": 1,
        "failed": 0
    },
    "cluster_name": "runTask",
    "nodes": {
        "cp-GjpOoRqedOuLwQCW6AQ": {
            "timestamp": 1680203484985,
            "name": "runTask-0",
            "transport_address": "127.0.0.1:9300",
            "host": "127.0.0.1",
            "ip": "127.0.0.1:9300",
            "roles": [
                ...
            ],
            "attributes": {
               ...
            },
            "file_cache": {
                "timestamp": 1680203484985,
                "active_in_bytes": 44426,
                "total_in_bytes": 302562354790,
                "used_in_bytes": 44426,
                "evicted_in_bytes": 0,
                "removed_in_bytes": 0,
                "replaced_count": 124,
                "active_percent": 100,
                "used_percent": 0,
                "cache_hits": 733,
                "cache_miss": 0
            }
        }
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
distributed framework enhancement Enhancement or improvement to existing feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants