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

Examples on geo-shape doc page run node out of memory #23836

Closed
nik9000 opened this issue Mar 31, 2017 · 0 comments
Closed

Examples on geo-shape doc page run node out of memory #23836

nik9000 opened this issue Mar 31, 2017 · 0 comments
Assignees
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >bug

Comments

@nik9000
Copy link
Member

nik9000 commented Mar 31, 2017

I was converting the examples on the geo-shape page to // CONSOLE so they are automatically tested and noticed that they use a crazy amount of memory. We should certainly fix the docs, but we really need to prevent these from using so much memory like we do with aggregations or the NFA -> DFA construction.

To reproduce, setup the index like the documentation does:

PUT /example
{
    "mappings": {
        "doc": {
            "properties": {
                "location": {
                    "type": "geo_shape",
                    "tree": "quadtree",
                    "precision": "1m"
                }
            }
        }
    }
}

Many of the examples are surprisingly slow. The linestring example takes half a second. The first polygon example takes 4.8 seconds. The second one takes 13 seconds. The next two fail entirely. The multipolygon and geometrycollection examples takes 21 seconds....

Themultilinestring and envelope examples put the 2GB node into a GC death spiral.

@nik9000 nik9000 added :Analytics/Geo Indexing, search aggregations of geo points and shapes >bug labels Mar 31, 2017
@imotov imotov self-assigned this May 31, 2018
imotov added a commit to imotov/elasticsearch that referenced this issue May 31, 2018
Reduces shape size and precision in geo shape mapper examples to reduce
amount of memory required to run doc.

Fixes elastic#23836
imotov added a commit that referenced this issue Jun 1, 2018
Reduces shape size and precision in geo shape mapper examples to reduce
amount of memory required to check docs.

Fixes #23836
imotov added a commit that referenced this issue Jun 1, 2018
Reduces shape size and precision in geo shape mapper examples to reduce
amount of memory required to check docs.

Fixes #23836
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
:Analytics/Geo Indexing, search aggregations of geo points and shapes >bug
Projects
None yet
Development

No branches or pull requests

2 participants