{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "IR",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "cmd/frostfs-ir",
            "env": {
                "FROSTFS_IR_LOGGER_LEVEL":"info",
                "FROSTFS_IR_WALLET_PATH":"${workspaceFolder}/dev/ir/az.json",
                "FROSTFS_IR_WALLET_ADDRESS":"Nhfg3TbpwogLvDGVvAvqyThbsHgoSUKwtn",
                "FROSTFS_IR_WALLET_PASSWORD":"one",
                "FROSTFS_IR_WITHOUT_MAINNET":"true",
                "FROSTFS_IR_MORPH_ENDPOINT_CLIENT_0_ADDRESS":"ws://127.0.0.1:30333/ws",
                "FROSTFS_IR_MORPH_VALIDATORS":"02b3622bf4017bdfe317c58aed5f4c753f206b7db896046fa7d774bbc4bf7f8dc2",
                "FROSTFS_IR_TIMERS_EMIT":"50",
                "FROSTFS_IR_TIMERS_STOP_ESTIMATION_MUL":"1",
                "FROSTFS_IR_TIMERS_STOP_ESTIMATION_DIV":"4",
                "FROSTFS_IR_TIMERS_COLLECT_BASIC_INCOME_MUL":"1",
                "FROSTFS_IR_TIMERS_COLLECT_BASIC_INCOME_DIV":"2",
                "FROSTFS_IR_TIMERS_DISTRIBUTE_BASIC_INCOME_MUL":"3",
                "FROSTFS_IR_TIMERS_DISTRIBUTE_BASIC_INCOME_DIV":"4",
                "FROSTFS_IR_EMIT_STORAGE_AMOUNT":"1000000000",
                "FROSTFS_IR_NETMAP_CLEANER_ENABLED":"true",
                "FROSTFS_IR_NETMAP_CLEANER_THRESHOLD":"3",
                "FROSTFS_IR_LOCODE_DB_PATH":"${workspaceFolder}/.cache/locode_db",
                "FROSTFS_IR_CONTROL_GRPC_ENDPOINT":"127.0.0.1:8090",
                "FROSTFS_IR_NODE_PERSISTENT_STATE_PATH":"${workspaceFolder}/.cache/state/.frostfs-ir-state"
            },
            "postDebugTask": "env-down"
        },
        {
            "name": "Storage node 1",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "cmd/frostfs-node",
            "env": {
                "FROSTFS_LOGGER_LEVEL":"debug",
                "FROSTFS_MORPH_DIAL_TIMEOUT":"30s",
                "FROSTFS_MORPH_RPC_ENDPOINT_0_ADDRESS":"ws://127.0.0.1:30333/ws",
                "FROSTFS_MORPH_RPC_ENDPOINT_0_PRIORITY":"0",
                "FROSTFS_MORPH_INACTIVITY_TIMEOUT":"60s",
                "FROSTFS_NODE_WALLET_PATH":"${workspaceFolder}/dev/storage/wallet01.json",
                "FROSTFS_NODE_WALLET_PASSWORD":"",
                "FROSTFS_NODE_ADDRESSES":"127.0.0.1:8080",
                "FROSTFS_GRPC_0_ENDPOINT":"127.0.0.1:8080",
                "FROSTFS_CONTROL_GRPC_ENDPOINT":"127.0.0.1:8081",
                "FROSTFS_CONTROL_AUTHORIZED_KEYS":"031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a",
                "FROSTFS_NODE_ATTRIBUTE_0":"User-Agent:FrostFS/dev",
                "FROSTFS_NODE_ATTRIBUTE_1":"UN-LOCODE:RU MOW",
                "FROSTFS_NODE_PERSISTENT_STATE_PATH":"${workspaceFolder}/.cache/state/.frostfs-node-s1-state",
                "FROSTFS_TREE_ENABLED":"true",
                "FROSTFS_OBJECT_DELETE_TOMBSTONE_LIFETIME":"10",
                "FROSTFS_STORAGE_SHARD_0_WRITECACHE_ENABLED":"true",
                "FROSTFS_STORAGE_SHARD_0_WRITECACHE_PATH":"${workspaceFolder}/.cache/storage/s1/wc0",
                "FROSTFS_STORAGE_SHARD_0_METABASE_PATH":"${workspaceFolder}/.cache/storage/s1/meta0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_TYPE":"blobovnicza",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_PATH":"${workspaceFolder}/.cache/storage/s1/blobovnicza0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_WIDTH":"4",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_TYPE":"fstree",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_PATH":"${workspaceFolder}/.cache/storage/s1/fstree0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_0_PILORAMA_PATH":"${workspaceFolder}/.cache/storage/s1/pilorama0",
                "FROSTFS_STORAGE_SHARD_1_WRITECACHE_ENABLED":"true",
                "FROSTFS_STORAGE_SHARD_1_WRITECACHE_PATH":"${workspaceFolder}/.cache/storage/s1/wc1",
                "FROSTFS_STORAGE_SHARD_1_METABASE_PATH":"${workspaceFolder}/.cache/storage/s1/meta1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_TYPE":"blobovnicza",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_PATH":"${workspaceFolder}/.cache/storage/s1/blobovnicza1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_WIDTH":"4",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_TYPE":"fstree",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_PATH":"${workspaceFolder}/.cache/storage/s1/fstree1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_1_PILORAMA_PATH":"${workspaceFolder}/.cache/storage/s1/pilorama1",
                "FROSTFS_PROMETHEUS_ENABLED":"true",
                "FROSTFS_PROMETHEUS_ADDRESS":"127.0.0.1:9090",
                "FROSTFS_PROMETHEUS_SHUTDOWN_TIMEOUT":"15s"
            },
            "postDebugTask": "env-down"
        },
        {
            "name": "Storage node 2",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "cmd/frostfs-node",
            "env": {
                "FROSTFS_LOGGER_LEVEL":"debug",
                "FROSTFS_MORPH_DIAL_TIMEOUT":"30s",
                "FROSTFS_MORPH_RPC_ENDPOINT_0_ADDRESS":"ws://127.0.0.1:30333/ws",
                "FROSTFS_MORPH_RPC_ENDPOINT_0_PRIORITY":"0",
                "FROSTFS_MORPH_INACTIVITY_TIMEOUT":"60s",
                "FROSTFS_NODE_WALLET_PATH":"${workspaceFolder}/dev/storage/wallet02.json",
                "FROSTFS_NODE_WALLET_PASSWORD":"",
                "FROSTFS_NODE_ADDRESSES":"127.0.0.1:8082",
                "FROSTFS_GRPC_0_ENDPOINT":"127.0.0.1:8082",
                "FROSTFS_CONTROL_GRPC_ENDPOINT":"127.0.0.1:8083",
                "FROSTFS_CONTROL_AUTHORIZED_KEYS":"031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a",
                "FROSTFS_NODE_ATTRIBUTE_0":"User-Agent:FrostFS/dev",
                "FROSTFS_NODE_ATTRIBUTE_1":"UN-LOCODE:RU MOW",
                "FROSTFS_NODE_PERSISTENT_STATE_PATH":"${workspaceFolder}/.cache/state/.frostfs-node-s2-state",
                "FROSTFS_TREE_ENABLED":"true",
                "FROSTFS_OBJECT_DELETE_TOMBSTONE_LIFETIME":"10",
                "FROSTFS_STORAGE_SHARD_0_WRITECACHE_ENABLED":"true",
                "FROSTFS_STORAGE_SHARD_0_WRITECACHE_PATH":"${workspaceFolder}/.cache/storage/s2/wc0",
                "FROSTFS_STORAGE_SHARD_0_METABASE_PATH":"${workspaceFolder}/.cache/storage/s2/meta0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_TYPE":"blobovnicza",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_PATH":"${workspaceFolder}/.cache/storage/s2/blobovnicza0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_WIDTH":"4",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_TYPE":"fstree",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_PATH":"${workspaceFolder}/.cache/storage/s2/fstree0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_0_PILORAMA_PATH":"${workspaceFolder}/.cache/storage/s2/pilorama0",
                "FROSTFS_STORAGE_SHARD_1_WRITECACHE_ENABLED":"true",
                "FROSTFS_STORAGE_SHARD_1_WRITECACHE_PATH":"${workspaceFolder}/.cache/storage/s2/wc1",
                "FROSTFS_STORAGE_SHARD_1_METABASE_PATH":"${workspaceFolder}/.cache/storage/s2/meta1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_TYPE":"blobovnicza",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_PATH":"${workspaceFolder}/.cache/storage/s2/blobovnicza1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_WIDTH":"4",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_TYPE":"fstree",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_PATH":"${workspaceFolder}/.cache/storage/s2/fstree1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_1_PILORAMA_PATH":"${workspaceFolder}/.cache/storage/s2/pilorama1",
                "FROSTFS_PROMETHEUS_ENABLED":"true",
                "FROSTFS_PROMETHEUS_ADDRESS":"127.0.0.1:9091",
                "FROSTFS_PROMETHEUS_SHUTDOWN_TIMEOUT":"15s"
            },
            "postDebugTask": "env-down"
        },
        {
            "name": "Storage node 3",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "cmd/frostfs-node",
            "env": {
                "FROSTFS_LOGGER_LEVEL":"debug",
                "FROSTFS_MORPH_DIAL_TIMEOUT":"30s",
                "FROSTFS_MORPH_RPC_ENDPOINT_0_ADDRESS":"ws://127.0.0.1:30333/ws",
                "FROSTFS_MORPH_RPC_ENDPOINT_0_PRIORITY":"0",
                "FROSTFS_MORPH_INACTIVITY_TIMEOUT":"60s",
                "FROSTFS_NODE_WALLET_PATH":"${workspaceFolder}/dev/storage/wallet03.json",
                "FROSTFS_NODE_WALLET_PASSWORD":"",
                "FROSTFS_NODE_ADDRESSES":"127.0.0.1:8084",
                "FROSTFS_GRPC_0_ENDPOINT":"127.0.0.1:8084",
                "FROSTFS_CONTROL_GRPC_ENDPOINT":"127.0.0.1:8085",
                "FROSTFS_CONTROL_AUTHORIZED_KEYS":"031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a",
                "FROSTFS_NODE_ATTRIBUTE_0":"User-Agent:FrostFS/dev",
                "FROSTFS_NODE_ATTRIBUTE_1":"UN-LOCODE:RU MOW",
                "FROSTFS_NODE_PERSISTENT_STATE_PATH":"${workspaceFolder}/.cache/state/.frostfs-node-s3-state",
                "FROSTFS_TREE_ENABLED":"true",
                "FROSTFS_OBJECT_DELETE_TOMBSTONE_LIFETIME":"10",
                "FROSTFS_STORAGE_SHARD_0_WRITECACHE_ENABLED":"true",
                "FROSTFS_STORAGE_SHARD_0_WRITECACHE_PATH":"${workspaceFolder}/.cache/storage/s3/wc0",
                "FROSTFS_STORAGE_SHARD_0_METABASE_PATH":"${workspaceFolder}/.cache/storage/s3/meta0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_TYPE":"blobovnicza",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_PATH":"${workspaceFolder}/.cache/storage/s3/blobovnicza0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_WIDTH":"4",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_TYPE":"fstree",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_PATH":"${workspaceFolder}/.cache/storage/s3/fstree0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_0_PILORAMA_PATH":"${workspaceFolder}/.cache/storage/s3/pilorama0",
                "FROSTFS_STORAGE_SHARD_1_WRITECACHE_ENABLED":"true",
                "FROSTFS_STORAGE_SHARD_1_WRITECACHE_PATH":"${workspaceFolder}/.cache/storage/s3/wc1",
                "FROSTFS_STORAGE_SHARD_1_METABASE_PATH":"${workspaceFolder}/.cache/storage/s3/meta1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_TYPE":"blobovnicza",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_PATH":"${workspaceFolder}/.cache/storage/s3/blobovnicza1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_WIDTH":"4",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_TYPE":"fstree",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_PATH":"${workspaceFolder}/.cache/storage/s3/fstree1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_1_PILORAMA_PATH":"${workspaceFolder}/.cache/storage/s3/pilorama1",
                "FROSTFS_PROMETHEUS_ENABLED":"true",
                "FROSTFS_PROMETHEUS_ADDRESS":"127.0.0.1:9092",
                "FROSTFS_PROMETHEUS_SHUTDOWN_TIMEOUT":"15s"
            },
            "postDebugTask": "env-down"
        },
        {
            "name": "Storage node 4",
            "type": "go",
            "request": "launch",
            "mode": "debug",
            "program": "cmd/frostfs-node",
            "env": {
                "FROSTFS_LOGGER_LEVEL":"debug",
                "FROSTFS_MORPH_DIAL_TIMEOUT":"30s",
                "FROSTFS_MORPH_RPC_ENDPOINT_0_ADDRESS":"ws://127.0.0.1:30333/ws",
                "FROSTFS_MORPH_RPC_ENDPOINT_0_PRIORITY":"0",
                "FROSTFS_MORPH_INACTIVITY_TIMEOUT":"60s",
                "FROSTFS_NODE_WALLET_PATH":"${workspaceFolder}/dev/storage/wallet04.json",
                "FROSTFS_NODE_WALLET_PASSWORD":"",
                "FROSTFS_NODE_ADDRESSES":"127.0.0.1:8086",
                "FROSTFS_GRPC_0_ENDPOINT":"127.0.0.1:8086",
                "FROSTFS_CONTROL_GRPC_ENDPOINT":"127.0.0.1:8087",
                "FROSTFS_CONTROL_AUTHORIZED_KEYS":"031a6c6fbbdf02ca351745fa86b9ba5a9452d785ac4f7fc2b7548ca2a46c4fcf4a",
                "FROSTFS_NODE_ATTRIBUTE_0":"User-Agent:FrostFS/dev",
                "FROSTFS_NODE_ATTRIBUTE_1":"UN-LOCODE:RU MOW",
                "FROSTFS_NODE_PERSISTENT_STATE_PATH":"${workspaceFolder}/.cache/state/.frostfs-node-s4-state",
                "FROSTFS_TREE_ENABLED":"true",
                "FROSTFS_OBJECT_DELETE_TOMBSTONE_LIFETIME":"10",
                "FROSTFS_STORAGE_SHARD_0_WRITECACHE_ENABLED":"true",
                "FROSTFS_STORAGE_SHARD_0_WRITECACHE_PATH":"${workspaceFolder}/.cache/storage/s4/wc0",
                "FROSTFS_STORAGE_SHARD_0_METABASE_PATH":"${workspaceFolder}/.cache/storage/s4/meta0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_TYPE":"blobovnicza",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_PATH":"${workspaceFolder}/.cache/storage/s4/blobovnicza0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_0_WIDTH":"4",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_TYPE":"fstree",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_PATH":"${workspaceFolder}/.cache/storage/s4/fstree0",
                "FROSTFS_STORAGE_SHARD_0_BLOBSTOR_1_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_0_PILORAMA_PATH":"${workspaceFolder}/.cache/storage/s4/pilorama0",
                "FROSTFS_STORAGE_SHARD_1_WRITECACHE_ENABLED":"true",
                "FROSTFS_STORAGE_SHARD_1_WRITECACHE_PATH":"${workspaceFolder}/.cache/storage/s4/wc1",
                "FROSTFS_STORAGE_SHARD_1_METABASE_PATH":"${workspaceFolder}/.cache/storage/s4/meta1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_TYPE":"blobovnicza",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_PATH":"${workspaceFolder}/.cache/storage/s4/blobovnicza1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_0_WIDTH":"4",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_TYPE":"fstree",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_PATH":"${workspaceFolder}/.cache/storage/s4/fstree1",
                "FROSTFS_STORAGE_SHARD_1_BLOBSTOR_1_DEPTH":"2",
                "FROSTFS_STORAGE_SHARD_1_PILORAMA_PATH":"${workspaceFolder}/.cache/storage/s4/pilorama1",
                "FROSTFS_PROMETHEUS_ENABLED":"true",
                "FROSTFS_PROMETHEUS_ADDRESS":"127.0.0.1:9093",
                "FROSTFS_PROMETHEUS_SHUTDOWN_TIMEOUT":"15s"
            },
            "postDebugTask": "env-down"
        }
    ],
    "compounds": [
        {
          "name": "IR+Storage node",
          "configurations": ["IR", "Storage node 1"],
          "preLaunchTask": "env-up",
          "stopAll": true
        },
        {
            "name": "IR + 4 storage nodes",
            "configurations": ["IR", "Storage node 1", "Storage node 2", "Storage node 3", "Storage node 4"],
            "preLaunchTask": "env-up",
            "stopAll": true
          }
    ]
}