DCP_BIN_PATH and DCP_EXTENSIONS_PATHBy default, DCP assumes the root directory to be
${HOME}/.dcp. .NET Aspire tooling is using these environment variables to instruct DCP to use locations and binaries inside Aspire.Hosting.Orchestration workload instead.DEBUG_SESSION_PORT, DEBUG_SESSION_TOKEN, and DEBUG_SESSION_SERVER_CERTIFICATEDCP_SESSION_FOLDERDCP_LOG_SOCKETstderr). This allows programs that launch DCP to capture its output even if DCP is running in --detach mode. The
--detach mode causes DCP to fork itself and break the parent-child relationship (and lifetime dependency) from the process that launched it, but the side effect of doing so is that the parent process loses ability to monitor DCP standard output and standard error streamd.DCP_LOG_SESSION_IDDCP_DIAGNOSTICS_LOG_LEVELCan be set to
error, info, or debug; for troubleshooting debug is recommended, although it results in the most verbose output.DCP_DIAGNOSTICS_LOG_FOLDERDCP_LOG_FILE_NAME_SUFFIXDCP_LOGGING_CONTEXTDCP_PRESERVE_EXECUTABLE_LOGSDCP_RESOURCE_WATCH_TIMEOUT_SECONDSDCP_IDE_REQUEST_TIMEOUT_SECONDS, DCP_IDE_NOTIFICATION_TIMEOUT_SECONDS, and DCP_IDE_NOTIFICATION_KEEPALIVE_SECONDSThe IDE notification keepalive value, if present, must be smaller than the IDE notification request timeout value.
A value of zero for IDE notification keepalive turns off the keep-alives (ping-pong messages) for the IDE notification connection.
DCP_INSTANCE_ID_PREFIXDCP_MOST_RECENT_PORT_LIFETIME, DCP_PORT_AVAILABILITY_CHECK_TIMEOUT, DCP_PORT_ALLOCATION_CHECK_TIMEOUT, DCP_PORT_ALLOCATIONS_PER_ROUND, and DCP_PORT_ALLOCATION_ROUND_DELAY DCP_MOST_RECENT_PORT_LIFETIME is the time a recently allocated network port is considered unavailable. Used during automatic port allocation. Defaults to 2 minutes. Note that a particular port number will never be re-used if it is being actively used by a program running on the machine, even if that port has been auto-allocated earlier than "lifetime" ago.
DCP_PORT_AVAILABILITY_CHECK_TIMEOUT determines how long DCP will try to access the most recently used ports file when checking for port availability. Defaults to 50 milliseconds.
DCP_PORT_ALLOCATION_CHECK_TIMEOUT determines how long DCP will try to ensure that the allocated port is unique for the whole machine (per single port allocation). Defaults to 1 second.
DCP_PORT_ALLOCATIONS_PER_ROUND determines how many port allocation attempts a DCP instance will make while holding a lock on the most recently used ports file. Defaults to 5.
DCP_PORT_ALLOCATION_ROUND_DELAY tells DCP how long to wait (releasing the lock on the MRU ports file) before attempting to allocate a unique port again. Defaults to 100 ms.
The values of all these environment variables should be the same as Go time.Duration literals (except from DCP_PORT_ALLOCATIONS_PER_ROUND, which is a positive integer).
DCP_IP_VERSION_PREFERENCEIPv4, v4 or 4 (to prefer IP protocol version 4) or IPv6, v6 or 6 (to prefer IP protocol version 6). The preference determines which type of available IP addresses will be preferred when resolving localhost host name. localhost is the default pseudo-address that both Services and DCP itself bind to. The value of DCP_IP_VERSION_PREFERENCE environment variable is not used if a Service requests specific address, or if a Service uses an address allocation mode that is different from localhost.
DCP_SHUTDOWN_TIMEOUT_SECONDSDCP_SECURE_TOKENDCP_PERF_TRACEDCP_DISABLE_PROCESS_CLEANUP_JOBDCP_DISABLE_PROCESS_CLEANUP_JOB to 1 or true should help.