#
# Copyright © 2024 NVIDIA CORPORATION & AFFILIATES. ALL RIGHTS RESERVED.
#
# This software product is a proprietary product of Nvidia Corporation and its affiliates
# (the "Company") and all right, title, and interest in and to the software
# product, including all associated intellectual property rights, are and
# shall remain exclusively with the Company.
#
# This software product is governed by the End User License Agreement
# provided with the software product.

# This file provides environment variables that control the UMF Proxy's behavior.

# This variable enables detailed HTTP/2 debugging.
# It provides verbose logging of HTTP/2 operations, including frame sending,
# receiving, and connection management.
# The value "2" indicates the highest level of verbosity.
# GODEBUG=http2debug=2

# This setting controls the verbosity level of gRPC logging.
# Setting it to 99 essentially enables all possible log messages, providing the
# most detailed output for debugging gRPC operations.
# GRPC_GO_LOG_VERBOSITY_LEVEL=99

# This variable sets the minimum severity level for gRPC log messages in Go.
# By setting it to "info", you'll see informational messages, warnings, errors,
# and fatal messages. This allows for comprehensive logging while filtering out
# less critical debug messages. Other possible values for these variables are
# `debug`, `error`, and `warn`.
# GRPC_GO_LOG_SEVERITY_LEVEL=info

# This environment variable is used to enable tracing for gRPC operations.
# Setting it to "all" activates all available tracers, providing extensive
# insight into how gRPC is processing requests. It can help in debugging various
# aspects of gRPC communication, including connection establishment, data
# transfer, and error handling. Other possible values for these variables are
# documented here:
# - https://github.com/grpc/grpc/blob/master/doc/trace_flags.md
# - https://github.com/grpc/grpc/blob/master/TROUBLESHOOTING.md#grpc_trace
# GRPC_TRACE=all

# Sets the location of the proxy's config file.
PROXY_CONFIG_FILE="/etc/default/nv-umf-proxy-config.yaml"

# Tune the garbage collector. This massively decreases CPU usage at a small cost
# of memory.
GOGC=1000