Skip to content

Commit

Permalink
fix exec node resource calculation on non-isolated CRI-powered job en…
Browse files Browse the repository at this point in the history
…vironment (#277)

* stage

* stage

* stage
  • Loading branch information
kruftik authored Jun 11, 2024
1 parent 91956c2 commit b2fdf69
Show file tree
Hide file tree
Showing 14 changed files with 2,513 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
{
"address_resolver"={
"enable_ipv4"=%false;
"enable_ipv6"=%true;
retries=1000;
};
"solomon_exporter"={
host="{POD_SHORT_HOSTNAME}";
"instance_tags"={
pod="{K8S_POD_NAME}";
};
};
logging={
writers={
info={
type=file;
"file_name"="/var/log/exec-node.info.log";
format="plain_text";
"enable_system_messages"=%true;
};
stderr={
type=stderr;
format="plain_text";
"enable_system_messages"=%true;
};
};
rules=[
{
"min_level"=info;
writers=[
info;
];
family="plain_text";
};
{
"min_level"=error;
writers=[
stderr;
];
family="plain_text";
};
];
"flush_period"=3000;
};
"monitoring_port"=10029;
"rpc_port"=9029;
"timestamp_provider"={
addresses=[
"ms-test-0.masters-test.fake.svc.fake.zone:9010";
];
};
"cluster_connection"={
"cluster_name"=test;
"primary_master"={
addresses=[
"ms-test-0.masters-test.fake.svc.fake.zone:9010";
];
peers=[
{
address="ms-test-0.masters-test.fake.svc.fake.zone:9010";
voting=%true;
};
];
"cell_id"="65726e65-ad6b7562-259-79747361";
};
"discovery_connection"={
addresses=[
];
};
"master_cache"={
addresses=[
"ms-test-0.masters-test.fake.svc.fake.zone:9010";
];
"cell_id"="65726e65-ad6b7562-259-79747361";
"enable_master_cache_discovery"=%false;
};
};
"cypress_annotations"={
"k8s_node_name"="{K8S_NODE_NAME}";
"k8s_pod_name"="{K8S_POD_NAME}";
"k8s_pod_namespace"="{K8S_POD_NAMESPACE}";
"physical_host"="{K8S_NODE_NAME}";
};
flavors=[
exec;
];
"resource_limits"={
"total_memory"=111669149696;
"total_cpu"=119.000000;
"node_dedicated_cpu"=20.000000;
};
tags=[
"rack:xn-a";
];
rack=fake;
"skynet_http_port"=11029;
"job_resource_manager"={
"resource_limits"={
"user_slots"=42;
};
};
"exec_node"={
"slot_manager"={
locations=[
{
path="/yt/hdd2/slots";
"medium_name"="";
"disk_usage_watermark"=0;
"enable_disk_quota"=%false;
};
];
"job_environment"={
type=cri;
"start_uid"=19500;
"cri_executor"={
"retry_backoff_time"=1000;
"retry_attempts"=120;
"retry_timeout"=120000;
"runtime_endpoint"="unix:///yt/hdd1/images/containerd.sock";
"image_endpoint"="unix:///yt/hdd1/images/containerd.sock";
namespace=yt;
"base_cgroup"="/yt";
};
"use_job_proxy_from_image"=%false;
};
"do_not_set_user_id"=%true;
"enable_tmpfs"=%false;
};
"gpu_manager"={
"gpu_info_source"={
type="nvidia_smi";
};
};
"job_controller"={
"resource_limits"={
"user_slots"=42;
};
"gpu_manager"={
"gpu_info_source"={
type="nvidia_smi";
};
};
};
"job_proxy"={
"job_proxy_authentication_manager"={
"cypress_cookie_manager"={
};
"cypress_user_manager"={
};
"cypress_token_authenticator"={
secure=%true;
};
"require_authentication"=%true;
};
"job_proxy_logging"={
writers={
debug={
type=file;
"file_name"="job-proxy.debug.log.zstd";
format="plain_text";
"compression_method"=zstd;
"enable_compression"=%true;
"enable_system_messages"=%true;
"rotation_policy"={
"rotation_period"=900000;
"max_total_size_to_keep"=3145728;
};
};
};
rules=[
{
"exclude_categories"=[
Bus;
Concurrency;
];
"min_level"=debug;
writers=[
debug;
];
family="plain_text";
};
];
"flush_period"=3000;
};
"forward_all_environment_variables"=%true;
};
"job_proxy_authentication_manager"={
"cypress_cookie_manager"={
};
"cypress_user_manager"={
};
"cypress_token_authenticator"={
secure=%true;
};
"require_authentication"=%true;
};
"job_proxy_logging"={
writers={
debug={
type=file;
"file_name"="job-proxy.debug.log.zstd";
format="plain_text";
"compression_method"=zstd;
"enable_compression"=%true;
"enable_system_messages"=%true;
"rotation_policy"={
"rotation_period"=900000;
"max_total_size_to_keep"=3145728;
};
};
};
rules=[
{
"exclude_categories"=[
Bus;
Concurrency;
];
"min_level"=debug;
writers=[
debug;
];
family="plain_text";
};
];
"flush_period"=3000;
};
"do_not_set_user_id"=%true;
"forward_all_environment_variables"=%true;
"use_artifact_binds"=%true;
};
"data_node"={
"store_locations"=[
];
"cache_locations"=[
{
path="/yt/hdd1/chunk-cache";
};
];
"block_cache"={
"compressed_data"={
capacity=0;
};
"uncompressed_data"={
capacity=0;
};
};
"blocks_ext_cache"={
capacity=0;
};
"chunk_meta_cache"={
capacity=0;
};
"block_meta_cache"={
capacity=0;
};
};
"tablet_node"={
"versioned_chunk_meta_cache"={
capacity=0;
};
};
"caching_object_service"={
capacity=0;
};
}
Loading

0 comments on commit b2fdf69

Please sign in to comment.