{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f2cc2342-0bf9-41e0-8433-31252d96652b",
    "slug": "postgresqltimescaledb-load-test",
    "name": "PostgreSQL/TimescaleDB Load Test",
    "description": "🚀 Database performance testing tool with replication lag measurement",
    "url": "https://railway.com/deploy/postgresqltimescaledb-load-test",
    "upstream": {
      "repo_url": "https://github.com/icueth/railsway-timescaledb-replica"
    }
  },
  "services": [
    {
      "name": "DB LoadTest",
      "source": {
        "repo": "https://github.com/icueth/railsway-timescaledb-replica"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "DB_HOST",
      "service": "DB LoadTest",
      "description": "Provide a value for DB_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "your-primary-db.railway.internal"
    },
    {
      "key": "DB_NAME",
      "service": "DB LoadTest",
      "description": "Replica (Optional - for lag test)",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DB_PORT",
      "service": "DB LoadTest",
      "description": "Provide a value for DB_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "DB_USER",
      "service": "DB LoadTest",
      "description": "Provide a value for DB_USER.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DB_PASSWORD",
      "service": "DB LoadTest",
      "description": "Provide a value for DB_PASSWORD.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REPLICA_HOST",
      "service": "DB LoadTest",
      "description": "Provide a value for REPLICA_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "your-replica-db.railway.internal"
    },
    {
      "key": "REPLICA_PORT",
      "service": "DB LoadTest",
      "description": "Provide a value for REPLICA_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "ENABLE_REPLICATION_TEST",
      "service": "DB LoadTest",
      "description": "Provide a value for ENABLE_REPLICATION_TEST.",
      "secret": false,
      "strategy": "default",
      "default": "true"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "postgresqltimescaledb-load-test"
      }
    },
    "cli": "railway deploy --template postgresqltimescaledb-load-test",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f2cc2342-0bf9-41e0-8433-31252d96652b",
            "serializedConfig": {
              "services": {
                "863ad8fb-7c4d-44fe-9679-77dc28bddbca": {
                  "icon": "https://devicons.railway.app/pos",
                  "name": "DB LoadTest",
                  "source": {
                    "repo": "icueth/railsway-timescaledb-replica",
                    "branch": null,
                    "rootDirectory": "/loadtest-db"
                  },
                  "variables": {
                    "DB_HOST": {
                      "defaultValue": "your-primary-db.railway.internal"
                    },
                    "DB_NAME": {
                      "description": "Replica (Optional - for lag test)",
                      "defaultValue": "postgres"
                    },
                    "DB_PORT": {
                      "defaultValue": "5432"
                    },
                    "DB_USER": {
                      "defaultValue": "postgres"
                    },
                    "DB_PASSWORD": {
                      "defaultValue": "${{postgres-primary.POSTGRES_PASSWORD}}"
                    },
                    "REPLICA_HOST": {
                      "defaultValue": "your-replica-db.railway.internal"
                    },
                    "REPLICA_PORT": {
                      "defaultValue": "5432"
                    },
                    "ENABLE_REPLICATION_TEST": {
                      "defaultValue": "true"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-16T04:14:35.474Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-16T05:29:38.468Z",
  "success_rate_30d": 0.75,
  "validation": {
    "last_run_id": "run_260b6565536d4729bacf",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 60,
    "typical_build_seconds": 30,
    "typical_start_seconds": 10,
    "slowest_service": "DB LoadTest"
  }
}
