Skip to content

Scripting: stats per context in nodes stats (#54008)#54357

Merged
stu-elastic merged 3 commits intoelastic:7.xfrom
stu-elastic:7.x--fix/50152-painless-limit-per-context__06__stats-api
Mar 27, 2020
Merged

Scripting: stats per context in nodes stats (#54008)#54357
stu-elastic merged 3 commits intoelastic:7.xfrom
stu-elastic:7.x--fix/50152-painless-limit-per-context__06__stats-api

Conversation

@stu-elastic
Copy link
Copy Markdown
Contributor

Adds script cache stats to _node/stats.
If using the general cache:

      "script_cache": {
        "sum": {
          "compilations": 12,
          "cache_evictions": 9,
          "compilation_limit_triggered": 5
        }
      }

If using context caches:

      "script_cache": {
        "sum": {
          "compilations": 13,
          "cache_evictions": 9,
          "compilation_limit_triggered": 5
        },
        "contexts": [
          {
            "context": "aggregation_selector",
            "compilations": 8,
            "cache_evictions": 6,
            "compilation_limit_triggered": 3
          },
          {
            "context": "aggs",
            "compilations": 5,
            "cache_evictions": 3,
            "compilation_limit_triggered": 2
          },

Refs: #50152

Adds script cache stats to `_node/stats`.
If using the general cache:
```
      "script_cache": {
        "sum": {
          "compilations": 12,
          "cache_evictions": 9,
          "compilation_limit_triggered": 5
        }
      }

```
If using context caches:
```
      "script_cache": {
        "sum": {
          "compilations": 13,
          "cache_evictions": 9,
          "compilation_limit_triggered": 5
        },
        "contexts": [
          {
            "context": "aggregation_selector",
            "compilations": 8,
            "cache_evictions": 6,
            "compilation_limit_triggered": 3
          },
          {
            "context": "aggs",
            "compilations": 5,
            "cache_evictions": 3,
            "compilation_limit_triggered": 2
          },
```
Refs: elastic#50152
@stu-elastic stu-elastic added >enhancement :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache backport v7.8.0 labels Mar 27, 2020
@elasticmachine
Copy link
Copy Markdown
Collaborator

Pinging @elastic/es-core-infra (:Core/Infra/Scripting)

@stu-elastic stu-elastic merged commit 1630de4 into elastic:7.x Mar 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport :Core/Infra/Scripting Scripting abstractions, Painless, and Mustache >enhancement v7.8.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants