|
| 1 | +// Replace the access_key_id / secret_access_key placeholders below with |
| 2 | +// real values, or with shellexpand refs like "${R2_ACCESS_KEY_ID}". |
| 3 | +// You can also choose to omit both placeholders to fall back to the AWS |
| 4 | +// default credential chain (but it only reads AWS_* env var names — your R2 keys would need to live there). |
| 5 | +{ |
| 6 | + stores: [ |
| 7 | + { |
| 8 | + name: "CAS_MAIN_STORE", |
| 9 | + verify: { |
| 10 | + verify_size: true, |
| 11 | + backend: { |
| 12 | + dedup: { |
| 13 | + index_store: { |
| 14 | + fast_slow: { |
| 15 | + fast: { |
| 16 | + memory: { |
| 17 | + eviction_policy: { |
| 18 | + max_bytes: "100mb", |
| 19 | + }, |
| 20 | + }, |
| 21 | + }, |
| 22 | + slow: { |
| 23 | + experimental_cloud_object_store: { |
| 24 | + provider: "r2", |
| 25 | + account_id: "636b76d9ace55d0aacba7980073c7ca7", |
| 26 | + bucket: "nativelink-cas-test", |
| 27 | + access_key_id: "r2_access_key_id", |
| 28 | + secret_access_key: "r2_secret_access_key", |
| 29 | + key_prefix: "cas-index/", |
| 30 | + retry: { |
| 31 | + max_retries: 6, |
| 32 | + delay: 0.3, |
| 33 | + jitter: 0.5, |
| 34 | + }, |
| 35 | + }, |
| 36 | + }, |
| 37 | + }, |
| 38 | + }, |
| 39 | + content_store: { |
| 40 | + compression: { |
| 41 | + compression_algorithm: { |
| 42 | + lz4: {}, |
| 43 | + }, |
| 44 | + backend: { |
| 45 | + fast_slow: { |
| 46 | + fast: { |
| 47 | + memory: { |
| 48 | + eviction_policy: { |
| 49 | + max_bytes: "100mb", |
| 50 | + }, |
| 51 | + }, |
| 52 | + }, |
| 53 | + slow: { |
| 54 | + experimental_cloud_object_store: { |
| 55 | + provider: "r2", |
| 56 | + account_id: "636b76d9ace55d0aacba7980073c7ca7", |
| 57 | + bucket: "nativelink-cas-test", |
| 58 | + access_key_id: "r2_access_key_id", |
| 59 | + secret_access_key: "r2_secret_access_key", |
| 60 | + key_prefix: "cas/", |
| 61 | + retry: { |
| 62 | + max_retries: 6, |
| 63 | + delay: 0.3, |
| 64 | + jitter: 0.5, |
| 65 | + }, |
| 66 | + }, |
| 67 | + }, |
| 68 | + }, |
| 69 | + }, |
| 70 | + }, |
| 71 | + }, |
| 72 | + }, |
| 73 | + }, |
| 74 | + }, |
| 75 | + }, |
| 76 | + { |
| 77 | + name: "AC_MAIN_STORE", |
| 78 | + fast_slow: { |
| 79 | + fast: { |
| 80 | + memory: { |
| 81 | + eviction_policy: { |
| 82 | + max_bytes: "100mb", |
| 83 | + }, |
| 84 | + }, |
| 85 | + }, |
| 86 | + slow: { |
| 87 | + experimental_cloud_object_store: { |
| 88 | + provider: "r2", |
| 89 | + account_id: "636b76d9ace55d0aacba7980073c7ca7", |
| 90 | + bucket: "nativelink-cas-test", |
| 91 | + access_key_id: "r2_access_key_id", |
| 92 | + secret_access_key: "r2_secret_access_key", |
| 93 | + key_prefix: "ac/", |
| 94 | + retry: { |
| 95 | + max_retries: 6, |
| 96 | + delay: 0.3, |
| 97 | + jitter: 0.5, |
| 98 | + }, |
| 99 | + }, |
| 100 | + }, |
| 101 | + }, |
| 102 | + }, |
| 103 | + ], |
| 104 | + schedulers: [ |
| 105 | + { |
| 106 | + name: "MAIN_SCHEDULER", |
| 107 | + simple: { |
| 108 | + supported_platform_properties: { |
| 109 | + cpu_count: "minimum", |
| 110 | + memory_kb: "minimum", |
| 111 | + network_kbps: "minimum", |
| 112 | + disk_read_iops: "minimum", |
| 113 | + disk_read_bps: "minimum", |
| 114 | + disk_write_iops: "minimum", |
| 115 | + disk_write_bps: "minimum", |
| 116 | + shm_size: "minimum", |
| 117 | + gpu_count: "minimum", |
| 118 | + gpu_model: "exact", |
| 119 | + cpu_vendor: "exact", |
| 120 | + cpu_arch: "exact", |
| 121 | + cpu_model: "exact", |
| 122 | + kernel_version: "exact", |
| 123 | + docker_image: "priority", |
| 124 | + "lre-rs": "priority", |
| 125 | + ISA: "exact", |
| 126 | + }, |
| 127 | + }, |
| 128 | + }, |
| 129 | + ], |
| 130 | + servers: [ |
| 131 | + { |
| 132 | + listener: { |
| 133 | + http: { |
| 134 | + socket_address: "0.0.0.0:50051", |
| 135 | + }, |
| 136 | + }, |
| 137 | + services: { |
| 138 | + cas: [ |
| 139 | + { |
| 140 | + instance_name: "main", |
| 141 | + cas_store: "CAS_MAIN_STORE", |
| 142 | + }, |
| 143 | + ], |
| 144 | + ac: [ |
| 145 | + { |
| 146 | + instance_name: "main", |
| 147 | + ac_store: "AC_MAIN_STORE", |
| 148 | + }, |
| 149 | + ], |
| 150 | + execution: [ |
| 151 | + { |
| 152 | + instance_name: "main", |
| 153 | + cas_store: "CAS_MAIN_STORE", |
| 154 | + scheduler: "MAIN_SCHEDULER", |
| 155 | + }, |
| 156 | + ], |
| 157 | + capabilities: [ |
| 158 | + { |
| 159 | + instance_name: "main", |
| 160 | + remote_execution: { |
| 161 | + scheduler: "MAIN_SCHEDULER", |
| 162 | + }, |
| 163 | + }, |
| 164 | + ], |
| 165 | + bytestream: [ |
| 166 | + { |
| 167 | + instance_name: "main", |
| 168 | + cas_store: "CAS_MAIN_STORE", |
| 169 | + }, |
| 170 | + ], |
| 171 | + health: {}, |
| 172 | + }, |
| 173 | + }, |
| 174 | + ], |
| 175 | +} |
0 commit comments