HomeFreeBSD

rpc.tlsservd: Add an option to run multiple daemons

Description

rpc.tlsservd: Add an option to run multiple daemons

During discussions with someone that was doing NFS-over-TLS
development for Solaris, we had a concern that the server might
become overloaded after rebooting, due to a large number of
TLS handshake requests from clients.

To alleviate this potential problem, this patch modifies rpc.tlsservd
so that it supports the "-N/--numdaemons" command line option,
which specifies that up to RPCTLS_SRV_MAXNPROCS (currently defined
as 16 in the patch) may be started.

When there are multiple daemons, one is selected by the patched kernel
in a round-robin fashion, to serve a TLS handshake request.

The man page update will be done in a future commit.

Reviewed by: emaste, karels
Differential Revision: https://reviews.freebsd.org/D35886

Details

Provenance
rmacklemAuthored on Oct 8 2022, 11:06 PM
Reviewer
emaste
Differential Revision
D35886: modify rpc.tlsservd so that it can optionally run multiple daemons
Parents
rGf860ce815177: zfs: mix mismerge in zfs_znode_free
Branches
Unknown
Tags
Unknown