Skip to content

Remove call_ip in the SchedulerServer #1558

@yahoNanJing

Description

@yahoNanJing

Describe the bug

Currently there's a field in the SchedulerServer for recording caller ip which sends requests to the scheduler. However, for one scheduler, there will be multiple clients. Concurrency issue may occur. It's not a good way for record the requester info in a global field. Therefore, it's better to remove it from the SchedulerServer.

We can get the requester ip from the hyper info and set it to the tonic info. Then in each tonic-based grpc interface, we can get the the requester ip from the Request.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions