Skip to content

Commit

Permalink
commit minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
extreme4all committed Dec 11, 2023
1 parent 2154d0c commit a24510f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ powershell "(Get-Content requirements.txt) | ForEach-Object { $_ -replace '>=',
```

```
kubectl port-forward -n kafka svc/kafka-service 9092:9092
kubectl port-forward -n kafka svc/bd-prd-kafka-service 9094:9094
kubectl port-forward -n kafka svc/bd-prd-kafdrop-service 9000:9000
kubectl port-forward -n database svc/mysql 3306:3306
Expand Down
8 changes: 4 additions & 4 deletions src_kafka/cleanup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def main():
# "session.timeout.ms":60000
"retention.bytes": 1_000_000_000, # 1GB
"segment.bytes": 100_000_000, # 100 mb
"retention.ms": 3_600_000 * 4, # 4 hours
"retention.ms": 3_600_000 * 16, # 16 hours
"segment.ms": 3_600_000, # 1 hour minutes
# "cleanup.policy": "delete" ,
},
Expand All @@ -34,7 +34,7 @@ def main():
# "session.timeout.ms": 60000
"retention.bytes": 1_000_000_000, # 1GB
"segment.bytes": 100_000_000, # 100 mb
"retention.ms": 3_600_000 * 4, # 4 hours
"retention.ms": 3_600_000 * 16, # 16 hours
"segment.ms": 3_600_000, # 1 hour minutes
# "cleanup.policy": "delete",
},
Expand All @@ -47,7 +47,7 @@ def main():
# "session.timeout.ms": 60000
"retention.bytes": 1_000_000_000, # 1GB
"segment.bytes": 100_000_000, # 100 mb
"retention.ms": 3_600_000 * 4, # 4 hours
"retention.ms": 3_600_000 * 16, # 16 hours
"segment.ms": 3_600_000, # 1 hour minutes
# "cleanup.policy": "delete",
},
Expand All @@ -60,7 +60,7 @@ def main():
# "session.timeout.ms": 60000
"retention.bytes": 1_000_000_000, # 1GB
"segment.bytes": 100_000_000, # 100 mb
"retention.ms": 3_600_000 * 4, # 4 hours
"retention.ms": 3_600_000 * 24, # 24 hours
"segment.ms": 3_600_000, # 1 hour minutes
# "cleanup.policy": "delete",
},
Expand Down

0 comments on commit a24510f

Please sign in to comment.