101 lines
5.5 KiB
Terraform
101 lines
5.5 KiB
Terraform
# =============================================================================
|
|
# locals.tf — все настраиваемые значения IOT_KAFKA_DEMO
|
|
# Kafka + ClickHouse + Superset + Flask (producer + consumer)
|
|
# =============================================================================
|
|
|
|
locals {
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# Kafka
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
kafka_resource_name = "iot-kafka-v2"
|
|
kafka_cpu = 500
|
|
kafka_memory = 1024
|
|
kafka_disk = 10
|
|
kafka_replicas = 1
|
|
kafka_version = "3.7"
|
|
kafka_timeout = "15m"
|
|
|
|
# Kafka — topic
|
|
kafka_topic_name = "iot-events"
|
|
kafka_topic_parts = 3
|
|
kafka_topic_repl = 1
|
|
|
|
# Kafka — user (общий для producer и consumer)
|
|
kafka_username = "iot-app"
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# RabbitMQ
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
rabbit_resource_name = "iot-rabbit"
|
|
rabbit_cpu = 300
|
|
rabbit_memory = 512
|
|
rabbit_disk = 5
|
|
rabbit_replicas = 1
|
|
rabbit_timeout = "11m"
|
|
rabbit_queue = "iot-events"
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# Flask — Producer
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
producer_resource_name = "iot-producer-v3"
|
|
producer_domain = "iotprodtest"
|
|
producer_git_path = "https://gitea.services.ngcloud.ru/Nail/tf-iot-producer.git"
|
|
producer_git_revision = "a6ed190"
|
|
producer_cpu = 300
|
|
producer_memory = 256
|
|
producer_replicas = 1
|
|
producer_timeout = "11m"
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# Flask — Consumer
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
consumer_resource_name = "iot-consumer-v4"
|
|
consumer_domain = "iotconstest"
|
|
consumer_git_path = "https://gitea.services.ngcloud.ru/Nail/tf-iot-consumer.git"
|
|
consumer_git_revision = "354cf38"
|
|
consumer_cpu = 300
|
|
consumer_memory = 256
|
|
consumer_replicas = 1
|
|
consumer_timeout = "11m"
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# Redis
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
redis_resource_name = "iot-redis"
|
|
redis_cpu = 300
|
|
redis_memory = 512
|
|
redis_disk = 5
|
|
redis_replicas = 1
|
|
redis_timeout = "11m"
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# MongoDB
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
mongo_resource_name = "iot-mongo"
|
|
mongo_cpu = 300
|
|
mongo_memory = 512
|
|
mongo_disk = 5
|
|
mongo_replicas = 1
|
|
mongo_timeout = "11m"
|
|
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
# Node.js Dashboard
|
|
# ═══════════════════════════════════════════════════════════════════════════
|
|
|
|
dashboard_resource_name = "iot-dashboard"
|
|
dashboard_domain = "iotdashtest"
|
|
dashboard_git_path = "https://gitea.services.ngcloud.ru/Nail/tf-iot-dashboard.git"
|
|
dashboard_git_revision = "42eb636"
|
|
dashboard_cpu = 300
|
|
dashboard_memory = 256
|
|
dashboard_replicas = 1
|
|
dashboard_timeout = "11m"
|
|
}
|