gRPC transport modes#
This section summarizes the supported gRPC transport modes between SAF GLOW Engine and product instances. These modes apply to product configurations that have enable_secure_flags=True, which is the case for all built-in product instance managers except VisorManager.
Important
Custom product configurations use insecure gRPC connections by default to avoid breaking changes. To benefit from the supported secure connection modes, set enable_secure_flags=True in your product configuration. For more information, see Create custom product managers and configurations.
Supported modes by product instance system#
The effective transport mode depends on:
Product instance system:
PIM Light ServerorHPS.Operating system of the product instance.
Product binding host (localhost vs non-localhost).
Availability of gRPC certificates.
Product instance system |
Product host scenario |
Supported mode |
Required configuration |
|---|---|---|---|
|
Windows + localhost binding |
|
No certificate directory required. |
|
Any other scenario |
|
No secure mode currently supported. |
|
Windows + localhost binding |
|
No certificate directory required. |
|
Linux + localhost binding |
|
No certificate directory required. |
|
Windows or Linux + non-localhost binding, certificates available |
|
Requires certificate directory. |
|
Windows or Linux + non-localhost binding, certificates not available |
|
This behavior is a compatibility fallback. |
Important
When using PIM Light Server, even if WNUA is used, SAF GLOW Engine logs that insecure gRPC connections is being used. This is because SAF GLOW Engine doesn’t have enough information to reliably say if the product is running with WNUA or in insecure mode. Nevertheless, in the products instance output, you can verify that it’s running with WNUA.
These modes describe the product instance system capabilities. However, the actual transport availability also depends on the capabilities of the product and its client. Check the notes for each product in Supported product instance managers.
Configuration variables#
Use
GLOW_PRODUCT_BINDING_HOSTto control whether the product binds to localhost or a non-localhost IP. This is set in the environment where the product instance is running, NOT in the GLOW API environment. For HPS, set it in the process that launches the HPS evaluator or scaler. When using products withsecure_flagsenabled, it defaults tolocalhost, which enables eitherWNUAorUDSmodes depending on the operating system. On the other hand, in insecure products, it defaults to all interfaces (0.0.0.0) to avoid breaking changes.Product instances bound to
localhostare only reachable from the same system. When SAF GLOW Engine runs in a different system or container, set it to a non-localhost address, such as the IP of the system or0.0.0.0.The following products don’t bind to the exact configured address:
MAPDL binds to localhost for localhost values, and to all interfaces otherwise.
Visor always binds to all interfaces (
0.0.0.0).
Use
ANSYS_GRPC_CERTIFICATESto enablemTLSin non-localhost scenarios. Certificates directory must contain:client.crtclient.keyca.crt