Subham9126 commited on
Commit
30ea1a1
Β·
verified Β·
1 Parent(s): b00cd33

Upload 5 files

Browse files
Files changed (2) hide show
  1. redpanda.yaml +6 -9
  2. start.sh +2 -16
redpanda.yaml CHANGED
@@ -9,7 +9,7 @@ redpanda:
9
  name: internal
10
 
11
  advertised_kafka_api:
12
- - address: 0.0.0.0
13
  port: 9092
14
  name: internal
15
 
@@ -17,19 +17,16 @@ redpanda:
17
  address: 0.0.0.0
18
  port: 33145
19
 
 
 
 
 
20
  admin:
21
  - address: 0.0.0.0
22
  port: 9644
23
 
24
  # ── HF Spaces resource limits ───────────────────────────────────────────────
25
  developer_mode: true
26
- overprovisioned: true
27
-
28
- # ── Retention: short since you store data yourself ──────────────────────────
29
- log_retention_ms: 3600000 # 1 hour
30
- log_retention_bytes: 536870912 # 512MB per partition
31
- log_segment_size: 67108864 # 64MB segments
32
- log_cleanup_policy: delete
33
 
34
  rpk:
35
  kafka_api:
@@ -45,7 +42,7 @@ pandaproxy:
45
  port: 8082
46
  name: internal
47
  advertised_pandaproxy_api:
48
- - address: 0.0.0.0
49
  port: 8082
50
  name: internal
51
 
 
9
  name: internal
10
 
11
  advertised_kafka_api:
12
+ - address: 127.0.0.1
13
  port: 9092
14
  name: internal
15
 
 
17
  address: 0.0.0.0
18
  port: 33145
19
 
20
+ advertised_rpc_api:
21
+ address: 127.0.0.1
22
+ port: 33145
23
+
24
  admin:
25
  - address: 0.0.0.0
26
  port: 9644
27
 
28
  # ── HF Spaces resource limits ───────────────────────────────────────────────
29
  developer_mode: true
 
 
 
 
 
 
 
30
 
31
  rpk:
32
  kafka_api:
 
42
  port: 8082
43
  name: internal
44
  advertised_pandaproxy_api:
45
+ - address: 127.0.0.1
46
  port: 8082
47
  name: internal
48
 
start.sh CHANGED
@@ -7,21 +7,7 @@ echo "━━━━━━━━━━━━━━━━━━━━━━━━
7
 
8
  # ── 1. Start Redpanda ─────────────────────────────────────────────────────────
9
  echo "[1/4] Starting Redpanda..."
10
- /usr/bin/redpanda start \
11
- --overprovisioned \
12
- --smp 1 \
13
- --memory 512M \
14
- --reserve-memory 0M \
15
- --node-id 0 \
16
- --check=false \
17
- --kafka-addr PLAINTEXT://0.0.0.0:9092 \
18
- --advertise-kafka-addr PLAINTEXT://0.0.0.0:9092 \
19
- --pandaproxy-addr 0.0.0.0:8082 \
20
- --advertise-pandaproxy-addr 0.0.0.0:8082 \
21
- --schema-registry-addr 0.0.0.0:8081 \
22
- --rpc-addr 0.0.0.0:33145 \
23
- --advertise-rpc-addr 0.0.0.0:33145 \
24
- --mode dev-container &
25
 
26
  REDPANDA_PID=$!
27
 
@@ -48,7 +34,7 @@ echo "[3/4] Initializing topics..."
48
  echo "[4/4] Starting nginx on :7860..."
49
  # Debian nginx binary lives at /usr/sbin/nginx
50
  # pid to /tmp β€” writable by uid 1000
51
- /usr/sbin/nginx -g "daemon off; pid /tmp/nginx.pid;" &
52
  NGINX_PID=$!
53
 
54
  echo ""
 
7
 
8
  # ── 1. Start Redpanda ─────────────────────────────────────────────────────────
9
  echo "[1/4] Starting Redpanda..."
10
+ /usr/bin/redpanda --redpanda-cfg /etc/redpanda/redpanda.yaml --smp 1 --memory 512M --reserve-memory 0M &
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
 
12
  REDPANDA_PID=$!
13
 
 
34
  echo "[4/4] Starting nginx on :7860..."
35
  # Debian nginx binary lives at /usr/sbin/nginx
36
  # pid to /tmp β€” writable by uid 1000
37
+ /usr/sbin/nginx -g "daemon off;" &
38
  NGINX_PID=$!
39
 
40
  echo ""