style: lint code

This commit is contained in:
Sun-ZhenXing
2026-02-23 17:41:05 +08:00
parent ced072de66
commit 7e14b01b78
240 changed files with 4301 additions and 1539 deletions

View File

@@ -26,7 +26,7 @@ Redpanda is a Kafka-compatible streaming data platform built for performance and
```bash
# Start only Redpanda (without console)
docker compose up -d
# Or start with Redpanda Console UI
docker compose --profile console up -d
```
@@ -106,7 +106,7 @@ Default resource limits:
- **Redpanda**:
- CPU: 1.0-2.0 cores
- Memory: 1G-2G
- **Console**:
- CPU: 0.25-0.5 cores
- Memory: 256M-512M

View File

@@ -26,7 +26,7 @@ Redpanda 是一个与 Kafka 兼容的流数据平台,专为性能和开发者
```bash
# 仅启动 Redpanda不包含控制台
docker compose up -d
# 或者启动包含 Redpanda Console UI
docker compose --profile console up -d
```

View File

@@ -7,7 +7,7 @@ x-defaults: &defaults
driver: json-file
options:
max-size: 100m
max-file: "3"
max-file: '3'
services:
redpanda:
@@ -29,17 +29,17 @@ services:
- --reserve-memory 0M
- --memory ${REDPANDA_MEMORY:-1G}
ports:
- "${REDPANDA_SCHEMA_PORT_OVERRIDE:-18081}:8081"
- "${REDPANDA_PROXY_PORT_OVERRIDE:-18082}:8082"
- "${REDPANDA_KAFKA_PORT_OVERRIDE:-19092}:19092"
- "${REDPANDA_ADMIN_PORT_OVERRIDE:-19644}:9644"
- '${REDPANDA_SCHEMA_PORT_OVERRIDE:-18081}:8081'
- '${REDPANDA_PROXY_PORT_OVERRIDE:-18082}:8082'
- '${REDPANDA_KAFKA_PORT_OVERRIDE:-19092}:19092'
- '${REDPANDA_ADMIN_PORT_OVERRIDE:-19644}:9644'
volumes:
- redpanda_data:/var/lib/redpanda/data
environment:
- TZ=${TZ:-UTC}
healthcheck:
test:
["CMD-SHELL", "rpk cluster health | grep -E 'Healthy:.+true' || exit 1"]
[CMD-SHELL, "rpk cluster health | grep -E 'Healthy:.+true' || exit 1"]
interval: 15s
timeout: 10s
retries: 5
@@ -59,7 +59,7 @@ services:
profiles:
- console
ports:
- "${REDPANDA_CONSOLE_PORT_OVERRIDE:-8080}:8080"
- '${REDPANDA_CONSOLE_PORT_OVERRIDE:-8080}:8080'
environment:
- KAFKA_BROKERS=redpanda:9092
- KAFKA_SCHEMAREGISTRY_ENABLED=true
@@ -72,7 +72,7 @@ services:
condition: service_healthy
healthcheck:
test:
["CMD", "wget", "--spider", "-q", "http://localhost:8080/admin/health"]
[CMD, wget, --spider, -q, 'http://localhost:8080/admin/health']
interval: 10s
timeout: 5s
retries: 3