Skip to content

Conversation

@spraveenio
Copy link
Contributor

@spraveenio spraveenio commented Jan 30, 2026

Motivation

Add support to run grpc over unix domain socket for secure access

Technical Details

  • reduce dependency of web services over tcp ip communication
  • to enable socket based grpc new argument with the socket path to use is introduced -s, --grpc-unix-socket <path>
  • gpuctl updated to check for default socket file present to automatically detect socket for gracefully switching to socket based access or revert to tcp based, arg node-svc-socket added to set non default custom socket for grpc connection

Test Plan

root@33e2dab2b163:/# ps aux
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.0  0.0   4364  3188 pts/0    Ss   20:37   0:00 /bin/bash -e /home/amd/tools/entrypoint.sh
root           8  0.0  0.0   4628  3812 pts/0    S+   20:37   0:00 bash
root          48  0.4  0.0 942488 31092 ?        Sl   20:46   0:00 /home/amd/bin/gpuagent -s /var/run/gpuagent.sock
root          72  0.0  0.0   4628  3932 pts/2    Ss   20:46   0:00 bash
root          91  0.0  0.0   7064  1548 pts/2    R+   20:47   0:00 ps aux
root@33e2dab2b163:/# gpuctl show gpu all | grep gpus
No. of gpus : 1
root@33e2dab2b163:/# gpuctl --node-svc-socket /var/run/gpuagent.sock show gpu all | grep -i vendor
  Card vendor                            : AMD
  Memory vendor                          : samsung
    VRAM vendor                          : samsung
root@33e2dab2b163:/

- to enable socket based grpc new argument with the socket path to use is introduced `-s, --grpc-unix-socket <path>`

- gpuctl updated to check for default socket file present to automatically detect socket for gracefully switching to socket based access or revert to tcp based, arg `node-svc-socket` added to set non default custom socket for grpc connection

```bash
root@33e2dab2b163:/# ps aux
USER         PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root           1  0.0  0.0   4364  3188 pts/0    Ss   20:37   0:00 /bin/bash -e /home/amd/tools/entrypoint.sh
root           8  0.0  0.0   4628  3812 pts/0    S+   20:37   0:00 bash
root          48  0.4  0.0 942488 31092 ?        Sl   20:46   0:00 /home/amd/bin/gpuagent -s /var/run/gpuagent.sock
root          72  0.0  0.0   4628  3932 pts/2    Ss   20:46   0:00 bash
root          91  0.0  0.0   7064  1548 pts/2    R+   20:47   0:00 ps aux
root@33e2dab2b163:/# gpuctl show gpu all | grep gpus
No. of gpus : 1
root@33e2dab2b163:/# gpuctl --node-svc-socket /var/run/gpuagent.sock show gpu all | grep -i vendor
  Card vendor                            : AMD
  Memory vendor                          : samsung
    VRAM vendor                          : samsung
root@33e2dab2b163:/
```
@spraveenio spraveenio changed the title grpc over unix socket Add unix domain socket over grpc for gpuagent Feb 3, 2026
@spraveenio spraveenio changed the title Add unix domain socket over grpc for gpuagent Add unix domain socket for grpc communication Feb 3, 2026
@spraveenio spraveenio marked this pull request as ready for review February 3, 2026 23:47
@spraveenio spraveenio added the enhancement New feature or request label Feb 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant