Skip to content

Queries towards Nebula times out #370

@magnudae

Description

@magnudae

Bug Question

We are experiencing some consistency issues with our Nebula setup.

It is ran on Azure in its own container instance group with GraphD, MetaD and StorageD, inspired by the minimal docker setup.
They are communicating properly and are operational

But we are experiencing timeout issues towards the server from time to time.

.venv/lib/python3.12/site-packages/nebula3/gclient/net/Connection.py", line 211, in execute_parameter
    raise IOErrorException(
nebula3.Exception.IOErrorException: TSocket read 0 bytes

This issue times out the query towards the graph quite often.

The setup we use is to create a sessionpool and then run execute_py to pass a query with params.

this is also run async with an asyncio.thread wrapped around.

    async def execute_with_params(self, query: str, params: dict) -> dict:
        coroutine = await asyncio.to_thread(self._pool.execute_py, query, params)
        return coroutine

Anyone experienced the same?
can it be the lack of async support?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions