claude-flow-novice 2.14.31 → 2.14.33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/cfn-data/cfn-loop.db +0 -0
- package/.claude/commands/CFN_LOOP_TASK_MODE.md +1 -1
- package/.claude/skills/cfn-agent-discovery/agents-registry.json +10 -9
- package/.claude/skills/cfn-docker-agent-spawning/SKILL.md +394 -0
- package/.claude/skills/cfn-docker-agent-spawning/spawn-agent.sh +521 -0
- package/.claude/skills/cfn-docker-loop-orchestration/SKILL.md +449 -0
- package/.claude/skills/cfn-docker-loop-orchestration/orchestrate.sh +787 -0
- package/.claude/skills/cfn-docker-redis-coordination/SKILL.md +435 -0
- package/.claude/skills/cfn-docker-redis-coordination/coordinate.sh +635 -0
- package/.claude/skills/cfn-docker-skill-mcp-selection/SKILL.md +289 -0
- package/.claude/skills/cfn-docker-skill-mcp-selection/skill-mcp-selector.js +472 -0
- package/.claude/skills/cfn-loop-validation/config.json +2 -2
- package/.claude/skills/pre-edit-backup/backup.sh +107 -0
- package/README.md +95 -0
- package/claude-assets/agents/README-AGENT_LIFECYCLE.md +10 -37
- package/claude-assets/agents/README-VALIDATION.md +8 -0
- package/claude-assets/agents/cfn-dev-team/README.md +8 -0
- package/claude-assets/agents/cfn-dev-team/coordinators/README.md +9 -1
- package/claude-assets/agents/cfn-dev-team/coordinators/cfn-v3-coordinator.md +71 -9
- package/claude-assets/agents/cfn-dev-team/developers/README.md +9 -1
- package/claude-assets/agents/cfn-dev-team/documentation/README-VALIDATION.md +8 -0
- package/claude-assets/agents/cfn-dev-team/documentation/agent-type-guidelines.md +10 -0
- package/claude-assets/agents/cfn-dev-team/reviewers/README.md +9 -1
- package/claude-assets/agents/cfn-dev-team/reviewers/quality/quality-metrics.md +10 -0
- package/claude-assets/agents/cfn-dev-team/test-agent.md +10 -0
- package/claude-assets/agents/cfn-dev-team/testers/README.md +9 -1
- package/claude-assets/agents/csuite/cto-agent.md +10 -0
- package/claude-assets/agents/custom/cfn-system-expert.md +128 -1
- package/claude-assets/agents/docker-coordinators/cfn-docker-v3-coordinator.md +5 -1
- package/claude-assets/agents/docker-team/csuite/c-suite-template.md +5 -1
- package/claude-assets/agents/docker-team/infrastructure/team-coordinator-template.md +5 -1
- package/claude-assets/agents/marketing_hybrid/cost_tracker.md +10 -0
- package/claude-assets/agents/marketing_hybrid/docker_deployer.md +10 -0
- package/claude-assets/agents/marketing_hybrid/zai_worker_spawner.md +10 -0
- package/claude-assets/commands/CFN_LOOP_TASK_MODE.md +1 -1
- package/claude-assets/hooks/cfn-post-execution/memory-cleanup.sh +20 -0
- package/claude-assets/hooks/cfn-pre-execution/memory-check.sh +20 -0
- package/claude-assets/skills/cfn-agent-discovery/agents-registry.json +10 -9
- package/claude-assets/skills/cfn-docker-agent-spawning/spawn-agent.sh +70 -10
- package/claude-assets/skills/cfn-loop-validation/config.json +2 -2
- package/claude-assets/skills/cfn-memory-management/SKILL.md +271 -0
- package/claude-assets/skills/cfn-memory-management/check-memory.sh +160 -0
- package/claude-assets/skills/cfn-memory-management/cleanup-memory.sh +197 -0
- package/claude-assets/skills/cfn-redis-data-extraction/SKILL.md +442 -0
- package/claude-assets/skills/cfn-redis-data-extraction/extract.sh +306 -0
- package/claude-assets/skills/cfn-task-config-init/initialize-config.sh +2 -2
- package/claude-assets/skills/hook-pipeline/security-scanner.sh +102 -0
- package/claude-assets/skills/pre-edit-backup/backup.sh +107 -0
- package/dist/cli/agent-command.js +44 -2
- package/dist/cli/agent-command.js.map +1 -1
- package/dist/cli/config-manager.js +91 -109
- package/dist/cli/config-manager.js.map +1 -1
- package/dist/cli/index.js +29 -2
- package/dist/cli/index.js.map +1 -1
- package/package.json +22 -5
- package/scripts/deploy-production.sh +356 -0
- package/scripts/memory-leak-prevention.sh +306 -0
|
@@ -0,0 +1,435 @@
|
|
|
1
|
+
# CFN Docker Redis Coordination Skill
|
|
2
|
+
|
|
3
|
+
**Purpose:** Provide Redis-based coordination, state management, and communication for container-based CFN Loop execution with swarm recovery capabilities.
|
|
4
|
+
|
|
5
|
+
## Overview
|
|
6
|
+
|
|
7
|
+
This skill manages all Redis-based coordination activities for docker-based agents, including task context storage, agent state management, completion signaling, consensus collection, and swarm recovery.
|
|
8
|
+
|
|
9
|
+
## Architecture
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
CFN Docker Coordinator
|
|
13
|
+
↓ (context storage)
|
|
14
|
+
Redis (State Management)
|
|
15
|
+
↓ (pub/sub messaging)
|
|
16
|
+
Agent Containers
|
|
17
|
+
↓ (completion signals)
|
|
18
|
+
Consensus Collection
|
|
19
|
+
↓ (decision flow)
|
|
20
|
+
Product Owner Decision
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Core Functions
|
|
24
|
+
|
|
25
|
+
### 1. Task Context Management
|
|
26
|
+
Store and retrieve task context for swarm recovery:
|
|
27
|
+
|
|
28
|
+
```bash
|
|
29
|
+
# Store task context
|
|
30
|
+
cfn-docker-redis-coordination store-context \
|
|
31
|
+
--task-id task-authentication \
|
|
32
|
+
--context-file task-context.json \
|
|
33
|
+
--ttl 3600
|
|
34
|
+
|
|
35
|
+
# Retrieve task context
|
|
36
|
+
cfn-docker-redis-coordination get-context \
|
|
37
|
+
--task-id task-authentication \
|
|
38
|
+
--agent-id agent-frontend-001
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
### 2. Agent Registration and Status
|
|
42
|
+
Track agent lifecycle and status:
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
# Register agent
|
|
46
|
+
cfn-docker-redis-coordination register-agent \
|
|
47
|
+
--agent-id agent-frontend-001 \
|
|
48
|
+
--agent-type react-frontend-engineer \
|
|
49
|
+
--container-id abc123 \
|
|
50
|
+
--task-id task-authentication
|
|
51
|
+
|
|
52
|
+
# Update agent status
|
|
53
|
+
cfn-docker-redis-coordination update-status \
|
|
54
|
+
--agent-id agent-frontend-001 \
|
|
55
|
+
--status running \
|
|
56
|
+
--iteration 1
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### 3. Completion Signaling
|
|
60
|
+
Handle agent completion and confidence reporting:
|
|
61
|
+
|
|
62
|
+
```bash
|
|
63
|
+
# Signal completion
|
|
64
|
+
cfn-docker-redis-coordination signal-complete \
|
|
65
|
+
--agent-id agent-frontend-001 \
|
|
66
|
+
--task-id task-authentication \
|
|
67
|
+
--confidence 0.85 \
|
|
68
|
+
--iteration 1
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 4. Consensus Collection
|
|
72
|
+
Collect and analyze consensus from validators:
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
# Collect Loop 2 consensus
|
|
76
|
+
cfn-docker-redis-coordination collect-consensus \
|
|
77
|
+
--task-id task-authentication \
|
|
78
|
+
--loop-number 2 \
|
|
79
|
+
--required-consensus 0.90 \
|
|
80
|
+
--timeout 300
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### 5. Swarm Recovery
|
|
84
|
+
Enable recovery from interruptions with state persistence:
|
|
85
|
+
|
|
86
|
+
```bash
|
|
87
|
+
# Recover swarm state
|
|
88
|
+
cfn-docker-redis-coordination recover-swarm \
|
|
89
|
+
--task-id task-authentication \
|
|
90
|
+
--restart-failed-agents
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Redis Data Structure
|
|
94
|
+
|
|
95
|
+
### Task Context Storage
|
|
96
|
+
```redis
|
|
97
|
+
# Task context (JSON)
|
|
98
|
+
HSET "cfn_docker:task:{task_id}:context" \
|
|
99
|
+
"epic_goal" "Implement user authentication" \
|
|
100
|
+
"deliverables" '["auth-service.js","login-form.html"]' \
|
|
101
|
+
"acceptance_criteria" '["Users can register","Login works","Passwords encrypted"]' \
|
|
102
|
+
"in_scope" '["authentication","security"]' \
|
|
103
|
+
"out_of_scope" '["user profiles","social login"]'
|
|
104
|
+
|
|
105
|
+
# Context metadata
|
|
106
|
+
HSET "cfn_docker:task:{task_id}:meta" \
|
|
107
|
+
"created_at" "2025-01-15T10:00:00Z" \
|
|
108
|
+
"ttl" "3600" \
|
|
109
|
+
"created_by" "cfn-docker-v3-coordinator"
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
### Agent State Management
|
|
113
|
+
```redis
|
|
114
|
+
# Agent registration
|
|
115
|
+
HSET "cfn_docker:agent:{agent_id}" \
|
|
116
|
+
"agent_type" "react-frontend-engineer" \
|
|
117
|
+
"container_id" "abc123" \
|
|
118
|
+
"task_id" "task-authentication" \
|
|
119
|
+
"status" "running" \
|
|
120
|
+
"iteration" "1" \
|
|
121
|
+
"created_at" "2025-01-15T10:05:00Z"
|
|
122
|
+
|
|
123
|
+
# Agent status history
|
|
124
|
+
LPUSH "cfn_docker:agent:{agent_id}:status_history" \
|
|
125
|
+
'{"status":"spawning","timestamp":"2025-01-15T10:05:00Z"}' \
|
|
126
|
+
'{"status":"running","timestamp":"2025-01-15T10:06:00Z"}'
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### Completion Signaling
|
|
130
|
+
```redis
|
|
131
|
+
# Agent completion signal
|
|
132
|
+
LPUSH "cfn_docker:task:{task_id}:agent:{agent_id}:done" "complete"
|
|
133
|
+
|
|
134
|
+
# Confidence reporting
|
|
135
|
+
HSET "cfn_docker:task:{task_id}:confidence:{agent_id}" \
|
|
136
|
+
"confidence" "0.85" \
|
|
137
|
+
"iteration" "1" \
|
|
138
|
+
"reported_at" "2025-01-15T10:30:00Z" \
|
|
139
|
+
"agent_type" "react-frontend-engineer"
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
### Consensus Tracking
|
|
143
|
+
```redis
|
|
144
|
+
# Loop 2 consensus collection
|
|
145
|
+
HSET "cfn_docker:task:{task_id}:loop2:consensus" \
|
|
146
|
+
"total_validators" "3" \
|
|
147
|
+
"responses_received" "3" \
|
|
148
|
+
"average_confidence" "0.92" \
|
|
149
|
+
"consensus_reached" "true" \
|
|
150
|
+
"decision" "PROCEED"
|
|
151
|
+
|
|
152
|
+
# Individual validator responses
|
|
153
|
+
HSET "cfn_docker:task:{task_id}:loop2:validator:{validator_id}" \
|
|
154
|
+
"confidence" "0.90" \
|
|
155
|
+
"feedback" "Implementation meets requirements" \
|
|
156
|
+
"suggested_changes" "None" \
|
|
157
|
+
"iteration" "1"
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
## Usage Patterns
|
|
161
|
+
|
|
162
|
+
### Task Initialization
|
|
163
|
+
```bash
|
|
164
|
+
# Initialize coordination for new task
|
|
165
|
+
cfn-docker-redis-coordination init-task \
|
|
166
|
+
--task-id task-authentication \
|
|
167
|
+
--context-file task-context.json \
|
|
168
|
+
--loop-count 5 \
|
|
169
|
+
--consensus-threshold 0.90
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
### Agent Lifecycle Management
|
|
173
|
+
```bash
|
|
174
|
+
# Register multiple agents
|
|
175
|
+
for agent in frontend backend security; do
|
|
176
|
+
cfn-docker-redis-coordination register-agent \
|
|
177
|
+
--agent-id "agent-${agent}-001" \
|
|
178
|
+
--agent-type "${agent}-developer" \
|
|
179
|
+
--task-id task-authentication
|
|
180
|
+
done
|
|
181
|
+
|
|
182
|
+
# Monitor agent status
|
|
183
|
+
cfn-docker-redis-coordination monitor-agents \
|
|
184
|
+
--task-id task-authentication \
|
|
185
|
+
--wait-for-complete
|
|
186
|
+
```
|
|
187
|
+
|
|
188
|
+
### Loop Orchestration Support
|
|
189
|
+
```bash
|
|
190
|
+
# Wait for Loop 3 completion
|
|
191
|
+
cfn-docker-redis-coordination wait-loop \
|
|
192
|
+
--task-id task-authentication \
|
|
193
|
+
--loop-number 3 \
|
|
194
|
+
--agent-count 3 \
|
|
195
|
+
--timeout 600
|
|
196
|
+
|
|
197
|
+
# Collect Loop 2 consensus
|
|
198
|
+
cfn-docker-redis-coordination collect-consensus \
|
|
199
|
+
--task-id task-authentication \
|
|
200
|
+
--loop-number 2 \
|
|
201
|
+
--required-consensus 0.90
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### Swarm Recovery
|
|
205
|
+
```bash
|
|
206
|
+
# Check for recoverable tasks
|
|
207
|
+
cfn-docker-redis-coordination list-recoverable-tasks
|
|
208
|
+
|
|
209
|
+
# Recover specific task
|
|
210
|
+
cfn-docker-redis-coordination recover-task \
|
|
211
|
+
--task-id task-authentication \
|
|
212
|
+
--restart-incomplete-agents
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
## Integration Points
|
|
216
|
+
|
|
217
|
+
### With CFN Docker Agent Spawning
|
|
218
|
+
```bash
|
|
219
|
+
# Agent spawning calls coordination
|
|
220
|
+
AGENT_ID=$(cfn-docker-agent-spawn --agent-type ${AGENT_TYPE} --task-id ${TASK_ID})
|
|
221
|
+
cfn-docker-redis-coordination register-agent \
|
|
222
|
+
--agent-id ${AGENT_ID} \
|
|
223
|
+
--agent-type ${AGENT_TYPE} \
|
|
224
|
+
--task-id ${TASK_ID}
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
### With CFN Docker Loop Orchestration
|
|
228
|
+
```bash
|
|
229
|
+
# Loop orchestration uses coordination for state
|
|
230
|
+
cfn-docker-loop-orchestration execute-loop3 \
|
|
231
|
+
--task-id ${TASK_ID} \
|
|
232
|
+
--agent-count 3 \
|
|
233
|
+
--coordination redis
|
|
234
|
+
```
|
|
235
|
+
|
|
236
|
+
### With CFN Docker Skill Selection
|
|
237
|
+
```bash
|
|
238
|
+
# Store MCP selection in Redis
|
|
239
|
+
MCP_CONFIG=$(cfn-docker-skill-mcp-selector select --agent-type ${AGENT_TYPE})
|
|
240
|
+
cfn-docker-redis-coordination store \
|
|
241
|
+
--key "agent:${AGENT_ID}:mcp-config" \
|
|
242
|
+
--value "${MCP_CONFIG}"
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
## Error Handling and Recovery
|
|
246
|
+
|
|
247
|
+
### Connection Resilience
|
|
248
|
+
```bash
|
|
249
|
+
# Redis connection retry
|
|
250
|
+
cfn-docker-redis-coordination connect \
|
|
251
|
+
--host redis \
|
|
252
|
+
--port 6379 \
|
|
253
|
+
--retry-attempts 5 \
|
|
254
|
+
--retry-delay 5
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
### Data Integrity
|
|
258
|
+
```bash
|
|
259
|
+
# Validate stored data
|
|
260
|
+
cfn-docker-redis-coordination validate \
|
|
261
|
+
--task-id task-authentication \
|
|
262
|
+
--repair-corrupted
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Timeout Management
|
|
266
|
+
```bash
|
|
267
|
+
# Handle operation timeouts
|
|
268
|
+
cfn-docker-redis-coordination timeout-handler \
|
|
269
|
+
--task-id task-authentication \
|
|
270
|
+
--agent-timeout 600 \
|
|
271
|
+
--consensus-timeout 300
|
|
272
|
+
```
|
|
273
|
+
|
|
274
|
+
## Performance Optimization
|
|
275
|
+
|
|
276
|
+
### Connection Pooling
|
|
277
|
+
- Use Redis connection pools for high-frequency operations
|
|
278
|
+
- Implement connection reuse across operations
|
|
279
|
+
- Configure appropriate pool sizes based on load
|
|
280
|
+
|
|
281
|
+
### Data Expiration
|
|
282
|
+
- Set TTLs on all temporary data
|
|
283
|
+
- Use automatic cleanup for expired data
|
|
284
|
+
- Implement manual cleanup for large datasets
|
|
285
|
+
|
|
286
|
+
### Memory Management
|
|
287
|
+
- Use Redis memory optimization techniques
|
|
288
|
+
- Compress large JSON objects
|
|
289
|
+
- Implement data partitioning for large tasks
|
|
290
|
+
|
|
291
|
+
### Batch Operations
|
|
292
|
+
```bash
|
|
293
|
+
# Batch agent registration
|
|
294
|
+
cfn-docker-redis-coordination batch-register \
|
|
295
|
+
--agent-list agents.json \
|
|
296
|
+
--task-id task-authentication
|
|
297
|
+
|
|
298
|
+
# Batch status updates
|
|
299
|
+
cfn-docker-redis-coordination batch-update-status \
|
|
300
|
+
--status-list status-updates.json
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
## Monitoring and Observability
|
|
304
|
+
|
|
305
|
+
### Health Checks
|
|
306
|
+
```bash
|
|
307
|
+
# Redis health check
|
|
308
|
+
cfn-docker-redis-coordination health-check \
|
|
309
|
+
--test-connection \
|
|
310
|
+
--test-memory \
|
|
311
|
+
--test-latency
|
|
312
|
+
|
|
313
|
+
# Task health monitoring
|
|
314
|
+
cfn-docker-redis-coordination monitor-task \
|
|
315
|
+
--task-id task-authentication \
|
|
316
|
+
--alert-stalled-agents
|
|
317
|
+
```
|
|
318
|
+
|
|
319
|
+
### Metrics Collection
|
|
320
|
+
```bash
|
|
321
|
+
# Performance metrics
|
|
322
|
+
cfn-docker-redis-coordination metrics \
|
|
323
|
+
--task-id task-authentication \
|
|
324
|
+
--include-memory \
|
|
325
|
+
--include-latency \
|
|
326
|
+
--include-throughput
|
|
327
|
+
|
|
328
|
+
# Agent performance tracking
|
|
329
|
+
cfn-docker-redis-coordination agent-metrics \
|
|
330
|
+
--task-id task-authentication \
|
|
331
|
+
--agent-id agent-frontend-001
|
|
332
|
+
```
|
|
333
|
+
|
|
334
|
+
### Audit Logging
|
|
335
|
+
```bash
|
|
336
|
+
# Enable audit logging
|
|
337
|
+
cfn-docker-redis-coordination audit-enable \
|
|
338
|
+
--log-level info \
|
|
339
|
+
--include-operations \
|
|
340
|
+
--include-data-changes
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
## Security Considerations
|
|
344
|
+
|
|
345
|
+
### Access Control
|
|
346
|
+
- Implement Redis authentication (AUTH command)
|
|
347
|
+
- Use ACLs for fine-grained access control
|
|
348
|
+
- Network isolation with Redis in private networks
|
|
349
|
+
|
|
350
|
+
### Data Encryption
|
|
351
|
+
- Enable Redis TLS for encrypted communication
|
|
352
|
+
- Encrypt sensitive data at rest
|
|
353
|
+
- Use secure key management for tokens
|
|
354
|
+
|
|
355
|
+
### Data Sanitization
|
|
356
|
+
- Sanitize all data before storage
|
|
357
|
+
- Validate data formats and sizes
|
|
358
|
+
- Prevent Redis injection attacks
|
|
359
|
+
|
|
360
|
+
## Best Practices
|
|
361
|
+
|
|
362
|
+
### Data Structure Design
|
|
363
|
+
- Use consistent key naming conventions
|
|
364
|
+
- Implement proper data versioning
|
|
365
|
+
- Use appropriate Redis data types for different use cases
|
|
366
|
+
|
|
367
|
+
### Performance Optimization
|
|
368
|
+
- Monitor Redis memory usage
|
|
369
|
+
- Implement appropriate eviction policies
|
|
370
|
+
- Use Redis clustering for large-scale deployments
|
|
371
|
+
|
|
372
|
+
### Operational Excellence
|
|
373
|
+
- Implement comprehensive monitoring
|
|
374
|
+
- Set up automated alerts for anomalies
|
|
375
|
+
- Regular backup and recovery testing
|
|
376
|
+
|
|
377
|
+
## Troubleshooting
|
|
378
|
+
|
|
379
|
+
### Common Issues
|
|
380
|
+
1. **Connection Failures**: Check Redis server status and network connectivity
|
|
381
|
+
2. **Memory Issues**: Monitor Redis memory usage and implement proper eviction policies
|
|
382
|
+
3. **Data Corruption**: Implement data validation and repair mechanisms
|
|
383
|
+
4. **Performance Issues**: Optimize queries and use appropriate indexing
|
|
384
|
+
|
|
385
|
+
### Debug Commands
|
|
386
|
+
```bash
|
|
387
|
+
# Debug connection issues
|
|
388
|
+
cfn-docker-redis-coordination debug-connection \
|
|
389
|
+
--host redis \
|
|
390
|
+
--port 6379 \
|
|
391
|
+
--verbose
|
|
392
|
+
|
|
393
|
+
# Debug data issues
|
|
394
|
+
cfn-docker-redis-coordination debug-data \
|
|
395
|
+
--task-id task-authentication \
|
|
396
|
+
--check-integrity \
|
|
397
|
+
--show-structure
|
|
398
|
+
|
|
399
|
+
# Debug performance
|
|
400
|
+
cfn-docker-redis-coordination debug-performance \
|
|
401
|
+
--task-id task-authentication \
|
|
402
|
+
--monitor-latency \
|
|
403
|
+
--show-memory-usage
|
|
404
|
+
```
|
|
405
|
+
|
|
406
|
+
## Configuration
|
|
407
|
+
|
|
408
|
+
### Environment Variables
|
|
409
|
+
```bash
|
|
410
|
+
# Redis connection
|
|
411
|
+
CFN_DOCKER_REDIS_HOST=localhost
|
|
412
|
+
CFN_DOCKER_REDIS_PORT=6379
|
|
413
|
+
CFN_DOCKER_REDIS_PASSWORD=
|
|
414
|
+
CFN_DOCKER_REDIS_DB=0
|
|
415
|
+
|
|
416
|
+
# Timeouts and limits
|
|
417
|
+
CFN_DOCKER_REDIS_TIMEOUT=30
|
|
418
|
+
CFN_DOCKER_REDIS_MAX_RETRIES=5
|
|
419
|
+
CFN_DOCKER_REDIS_POOL_SIZE=10
|
|
420
|
+
|
|
421
|
+
# Data management
|
|
422
|
+
CFN_DOCKER_REDIS_DEFAULT_TTL=3600
|
|
423
|
+
CFN_DOCKER_REDIS_MAX_MEMORY=1gb
|
|
424
|
+
CFN_DOCKER_REDIS_EVICTION_POLICY=allkeys-lru
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
### Redis Configuration
|
|
428
|
+
```conf
|
|
429
|
+
# redis.conf recommendations for CFN Docker
|
|
430
|
+
maxmemory 1gb
|
|
431
|
+
maxmemory-policy allkeys-lru
|
|
432
|
+
save 900 1
|
|
433
|
+
save 300 10
|
|
434
|
+
save 60 10000
|
|
435
|
+
```
|