hashicorp / go-plugin

Golang plugin system over RPC.
Mozilla Public License 2.0
5.25k stars 450 forks source link

allow network type to be specified #226

Open davestibrany-dd opened 1 year ago

davestibrany-dd commented 1 year ago

Allows users to specify a network type of "tcp" or "unix". If no network type is specified, we'll default to "tcp" for windows, and "unix" otherwise.

Related issues:

213

151

hashicorp-cla commented 1 year ago

CLA assistant check
All committers have signed the CLA.

davestibrany-dd commented 1 year ago

For our particular use case, we've noticed high kernel memory usage when using unix sockets. We're continuously spinning up/tearing down short lived plugins which leads to bloat in the linux dentry cache. Even though this memory is reclaimable by the kernel, it makes it difficult to monitor our containers for legit memory leaks. Switching to tcp sockets fixes this for us.