feat: IoT demo — RabbitMQ + Redis + MongoDB + Node.js producer plan (test stand cleanup)
This commit is contained in:
@@ -9,7 +9,7 @@ locals {
|
||||
# Kafka
|
||||
# ═══════════════════════════════════════════════════════════════════════════
|
||||
|
||||
kafka_resource_name = "iot-kafka"
|
||||
kafka_resource_name = "iot-kafka-v2"
|
||||
kafka_cpu = 500
|
||||
kafka_memory = 1024
|
||||
kafka_disk = 10
|
||||
@@ -26,46 +26,25 @@ locals {
|
||||
kafka_username = "iot-app"
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════
|
||||
# ClickHouse
|
||||
# RabbitMQ
|
||||
# ═══════════════════════════════════════════════════════════════════════════
|
||||
|
||||
ch_resource_name = "iot-ch"
|
||||
ch_cpu = 500
|
||||
ch_memory = 1024
|
||||
ch_disk = 10
|
||||
ch_replicas = 1
|
||||
ch_shards = 1
|
||||
ch_version = "24.8"
|
||||
ch_timeout = "15m"
|
||||
|
||||
# ClickHouse — database
|
||||
ch_db_name = "iot"
|
||||
|
||||
# ClickHouse — user
|
||||
ch_username = "iot_writer"
|
||||
ch_role = "ddl_user"
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════
|
||||
# Superset
|
||||
# ═══════════════════════════════════════════════════════════════════════════
|
||||
|
||||
superset_resource_name = "iot-superset"
|
||||
superset_domain = "iotsuperset"
|
||||
superset_cpu = 500
|
||||
superset_memory = 1024
|
||||
superset_disk = 5
|
||||
superset_instances = 1
|
||||
superset_email = "admin"
|
||||
superset_timeout = "15m"
|
||||
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"
|
||||
producer_domain = "iotproducer"
|
||||
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 = "master"
|
||||
producer_git_revision = "a6ed190"
|
||||
producer_cpu = 300
|
||||
producer_memory = 256
|
||||
producer_replicas = 1
|
||||
@@ -75,19 +54,47 @@ locals {
|
||||
# Flask — Consumer
|
||||
# ═══════════════════════════════════════════════════════════════════════════
|
||||
|
||||
consumer_resource_name = "iot-consumer"
|
||||
consumer_domain = "iotconsumer"
|
||||
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 = "master"
|
||||
consumer_git_revision = "354cf38"
|
||||
consumer_cpu = 300
|
||||
consumer_memory = 256
|
||||
consumer_replicas = 1
|
||||
consumer_timeout = "11m"
|
||||
|
||||
# ═══════════════════════════════════════════════════════════════════════════
|
||||
# Общие
|
||||
# Redis
|
||||
# ═══════════════════════════════════════════════════════════════════════════
|
||||
|
||||
kafka_port = "9092"
|
||||
ch_http_port = "8123"
|
||||
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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user