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

POC for in flight search requests in tasks API #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ansjcy
Copy link
Owner

@ansjcy ansjcy commented Mar 24, 2025

Results

{
    "nodes": {
        "jQlTSnXSQCivMYJcUnRoAA": {
            "name": "runTask-1",
            "transport_address": "127.0.0.1:9301",
            "host": "127.0.0.1",
            "ip": "127.0.0.1:9301",
            "roles": [
                "cluster_manager",
                "data",
                "ingest",
                "remote_cluster_client"
            ],
            "attributes": {
                "testattr": "test",
                "shard_indexing_pressure_enabled": "true"
            },
            "tasks": {
                "jQlTSnXSQCivMYJcUnRoAA:123": {
                    "node": "jQlTSnXSQCivMYJcUnRoAA",
                    "id": 123,
                    "type": "transport",
                    "action": "indices:data/read/search[phase/query]",
                    "start_time_in_millis": 1742852774048,
                    "running_time_in_nanos": 6577694625,
                    "cancellable": true,
                    "cancelled": false,
                    "parent_task_id": "SUg3zajLQUy7CpFXZwc0GA:102",
                    "headers": {}
                }
            }
        },
        "SUg3zajLQUy7CpFXZwc0GA": {
            "name": "runTask-0",
            "transport_address": "127.0.0.1:9300",
            "host": "127.0.0.1",
            "ip": "127.0.0.1:9300",
            "roles": [
                "cluster_manager",
                "data",
                "ingest",
                "remote_cluster_client"
            ],
            "attributes": {
                "testattr": "test",
                "shard_indexing_pressure_enabled": "true"
            },
            "tasks": {
                "SUg3zajLQUy7CpFXZwc0GA:102": {
                    "node": "SUg3zajLQUy7CpFXZwc0GA",
                    "id": 102,
                    "type": "transport",
                    "action": "indices:data/read/search",
                    "description": "indices[my-index-0], search_type[QUERY_THEN_FETCH], source[{\"size\":20,\"query\":{\"term\":{\"user.id\":{\"value\":\"cyji\",\"boost\":1.0}}}}]",
                    "start_time_in_millis": 1742852774029,
                    "running_time_in_nanos": 6596169625,
                    "cancellable": true,
                    "cancelled": false,
                    "headers": {},
                    "resource_stats": {
                        "average": {
                            "cpu_time_in_nanos": 0,
                            "memory_in_bytes": 0
                        },
                        "total": {
                            "cpu_time_in_nanos": 0,
                            "memory_in_bytes": 0
                        },
                        "min": {
                            "cpu_time_in_nanos": 0,
                            "memory_in_bytes": 0
                        },
                        "max": {
                            "cpu_time_in_nanos": 0,
                            "memory_in_bytes": 0
                        },
                        "thread_info": {
                            "thread_executions": 0,
                            "active_threads": 0
                        }
                    },
                    "search_source": {
                        "size": 20,
                        "query": {
                            "term": {
                                "user.id": {
                                    "value": "cyji",
                                    "boost": 1.0
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

@ansjcy ansjcy force-pushed the poc-inflight-search branch from 69731f9 to ad9d1f1 Compare March 24, 2025 21:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant