public abstract class RemoteExecutionConfig extends Object implements ConfigView<BuckConfig>
Modifier and Type | Field and Description |
---|---|
static String |
AUTO_RE_BUILD_PROJECTS_WHITELIST_KEY |
static String |
AUTO_RE_BUILD_USERS_BLACKLIST_KEY |
static String |
AUTO_RE_EXPERIMENT_PROPERTY_KEY |
static String |
AUTO_RE_STRATEGY_KEY
Strategy used to determine whether to enable Remote Execution automatically for the current
build
|
static String |
BUILD_TAGS_KEY |
static String |
CONCURRENT_ACTION_COMPUTATIONS_KEY
Number of actions to compute at a time.
|
static String |
CONCURRENT_EXECUTIONS_KEY
Limit on the number of outstanding execution requests.
|
static String |
CONCURRENT_PENDING_UPLOADS_KEY
Number of pending uploads at a time.
|
static String |
CONCURRENT_RESULT_HANDLING_KEY
Number of results to concurrently handle at a time.
|
static String |
DEBUG_FORMAT_STRING_URL_KEY
URL format string for debug UI on the super console
|
static String |
DEFAULT_AUTO_RE_EXPERIMENT_PROPERTY |
static int |
DEFAULT_CAS_DEADLINE_S |
static int |
DEFAULT_CAS_PORT |
static boolean |
DEFAULT_IS_LOCAL_FALLBACK_DISABLED_ON_CORRUPT_ARTIFACTS |
static boolean |
DEFAULT_IS_LOCAL_FALLBACK_ENABLED |
static boolean |
DEFAULT_IS_LOCAL_FALLBACK_ENABLED_FOR_COMPLETED_ACTION |
static int |
DEFAULT_REMOTE_CONCURRENT_ACTION_COMPUTATIONS |
static int |
DEFAULT_REMOTE_CONCURRENT_EXECUTIONS |
static int |
DEFAULT_REMOTE_CONCURRENT_PENDING_UPLOADS |
static int |
DEFAULT_REMOTE_CONCURRENT_RESULT_HANDLING |
static int |
DEFAULT_REMOTE_OUTPUT_MATERIALIZATION_THREADS |
static int |
DEFAULT_REMOTE_PORT |
static int |
DEFAULT_REMOTE_STRATEGY_THREADS |
static String |
FORMAT_SESSION_ID_VARIABLE_STRING
The variable identifier string to be replace in any configured format defined by
DEBUG_FORMAT_STRING_URL_KEY.
|
static String |
INPUT_IGNORE_KEY
Input paths to ignore for actions
|
static String |
IS_LOCAL_FALLBACK_DISABLED_ON_CORRUPT_ARTIFACTS_KEY
Whether failed remote executions are retried locally if the artifacts are corrupted.
|
static String |
IS_LOCAL_FALLBACK_ENABLED_FOR_COMPLETED_ACTION_KEY |
static String |
IS_LOCAL_FALLBACK_ENABLED_KEY
Whether failed remote executions are retried locally.
|
static String |
LARGE_BLOB_SIZE_BYTES
The large blob size bytes threshold, if unset, no threshold.
|
static Logger |
LOG |
static String |
MAX_INPUT_SIZE_BYTES
The maximum size of inputs allowed on remote execution, if unset, no maximum.
|
static String |
MAX_WORKER_SIZE_TO_STEAL_FROM
Actions which require a worker of this size (or higher) will not be stolen locally when running
in hybrid mode
|
static String |
OUTPUT_MATERIALIZATION_THREADS_KEY
Number of threads to handle output materialization.
|
static String |
RE_SESSION_LABEL_KEY
Free form string label that can be passed along any Remote Execution session.
|
static String |
SECTION |
static String |
STRATEGY_WORKER_THREADS_KEY
Number of threads for the strategy to do its work.
|
static String |
TENANT_ID_KEY
Tenant ID that will be attached to each action *
|
static String |
TRY_LARGER_WORKER_ON_OOM |
static String |
USE_REMOTE_EXECUTION_FOR_GENRULE_IF_REQUESTED_FORMAT |
static String |
WORKER_REQUIREMENTS_FILENAME
Worker requirements filename
|
Constructor and Description |
---|
RemoteExecutionConfig() |
Modifier and Type | Method and Description |
---|---|
String |
getAuxiliaryBuildTag()
Provides an auxiliary tag used for capturing any custom configurations.
|
int |
getCasDeadline() |
String |
getCasHost() |
boolean |
getCasInsecure() |
int |
getCasPort() |
Optional<Path> |
getCertFile()
client TLS certificate file in PEM format
|
Optional<Path> |
getCertificateAuthoritiesFile()
file containing all TLS authorities to verify server certificate with (PEM format)
|
String |
getDebugURLString(com.facebook.buck.remoteexecution.proto.RESessionID reSessionID) |
boolean |
getInsecure() |
Optional<Path> |
getKeyFile()
client TLS private key in PEM format
|
Optional<com.facebook.buck.remoteexecution.proto.WorkerRequirements.WorkerSize> |
getMaxWorkerSizeToStealFrom() |
String |
getRemoteHost() |
int |
getRemotePort() |
String |
getReSessionLabel() |
RemoteExecutionStrategyConfig |
getStrategyConfig() |
String |
getTenantId() |
RemoteExecutionType |
getType() |
static String |
getUseRemoteExecutionForGenruleIfRequestedField(String type) |
boolean |
isConsoleEnabled()
Whether Console output of Remote Execution information is enabled.
|
boolean |
isDebug() |
boolean |
isRemoteExecutionAutoEnabled(String username,
List<String> commandArguments) |
static RemoteExecutionConfig |
of(BuckConfig delegate) |
boolean |
shouldUseRemoteExecutionForGenruleIfRequested(String type)
Returns whether or not we should honor the `remote` argument to `genrule`, which requests that
the genrule run remotely.
|
void |
validateCertificatesOrThrow() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDelegate
public static final Logger LOG
public static final String SECTION
public static final int DEFAULT_REMOTE_PORT
public static final int DEFAULT_CAS_PORT
public static final int DEFAULT_CAS_DEADLINE_S
public static final int DEFAULT_REMOTE_STRATEGY_THREADS
public static final int DEFAULT_REMOTE_CONCURRENT_ACTION_COMPUTATIONS
public static final int DEFAULT_REMOTE_CONCURRENT_PENDING_UPLOADS
public static final int DEFAULT_REMOTE_CONCURRENT_EXECUTIONS
public static final int DEFAULT_REMOTE_CONCURRENT_RESULT_HANDLING
public static final int DEFAULT_REMOTE_OUTPUT_MATERIALIZATION_THREADS
public static final boolean DEFAULT_IS_LOCAL_FALLBACK_ENABLED
public static final boolean DEFAULT_IS_LOCAL_FALLBACK_DISABLED_ON_CORRUPT_ARTIFACTS
public static final boolean DEFAULT_IS_LOCAL_FALLBACK_ENABLED_FOR_COMPLETED_ACTION
public static final String TENANT_ID_KEY
public static final String CONCURRENT_EXECUTIONS_KEY
public static final String CONCURRENT_ACTION_COMPUTATIONS_KEY
public static final String CONCURRENT_RESULT_HANDLING_KEY
public static final String OUTPUT_MATERIALIZATION_THREADS_KEY
public static final String IS_LOCAL_FALLBACK_ENABLED_KEY
public static final String IS_LOCAL_FALLBACK_DISABLED_ON_CORRUPT_ARTIFACTS_KEY
public static final String MAX_INPUT_SIZE_BYTES
public static final String LARGE_BLOB_SIZE_BYTES
public static final String STRATEGY_WORKER_THREADS_KEY
public static final String CONCURRENT_PENDING_UPLOADS_KEY
public static final String DEBUG_FORMAT_STRING_URL_KEY
public static final String FORMAT_SESSION_ID_VARIABLE_STRING
public static final String MAX_WORKER_SIZE_TO_STEAL_FROM
public static final String RE_SESSION_LABEL_KEY
public static final String WORKER_REQUIREMENTS_FILENAME
public static final String TRY_LARGER_WORKER_ON_OOM
public static final String IS_LOCAL_FALLBACK_ENABLED_FOR_COMPLETED_ACTION_KEY
public static final String AUTO_RE_BUILD_PROJECTS_WHITELIST_KEY
public static final String AUTO_RE_BUILD_USERS_BLACKLIST_KEY
public static final String INPUT_IGNORE_KEY
public static final String AUTO_RE_STRATEGY_KEY
public static final String BUILD_TAGS_KEY
public static final String AUTO_RE_EXPERIMENT_PROPERTY_KEY
public static final String DEFAULT_AUTO_RE_EXPERIMENT_PROPERTY
public static final String USE_REMOTE_EXECUTION_FOR_GENRULE_IF_REQUESTED_FORMAT
public static RemoteExecutionConfig of(BuckConfig delegate)
public static String getUseRemoteExecutionForGenruleIfRequestedField(String type)
public boolean shouldUseRemoteExecutionForGenruleIfRequested(String type)
public boolean isRemoteExecutionAutoEnabled(String username, List<String> commandArguments)
public String getRemoteHost()
public int getRemotePort()
public String getCasHost()
public int getCasPort()
public int getCasDeadline()
public boolean getInsecure()
public boolean getCasInsecure()
public Optional<Path> getCertificateAuthoritiesFile()
public Optional<com.facebook.buck.remoteexecution.proto.WorkerRequirements.WorkerSize> getMaxWorkerSizeToStealFrom()
public String getTenantId()
public String getDebugURLString(com.facebook.buck.remoteexecution.proto.RESessionID reSessionID)
public boolean isDebug()
@Value.Derived public RemoteExecutionStrategyConfig getStrategyConfig()
public RemoteExecutionType getType()
public boolean isConsoleEnabled()
public String getReSessionLabel()
public String getAuxiliaryBuildTag()
public void validateCertificatesOrThrow()