Skip to content

Commit

Permalink
increase log processor batch, update docker example image version
Browse files Browse the repository at this point in the history
Signed-off-by: neo <[email protected]>
  • Loading branch information
neowu committed Aug 5, 2024
1 parent b75b5b9 commit ce3b8b7
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions docker/es/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.1
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
volumes:
- ./log4j2.properties:/usr/share/elasticsearch/config/log4j2.properties
ports:
Expand All @@ -15,7 +15,7 @@ services:
- xpack.ml.enabled=false
- ingest.geoip.downloader.enabled=false
kibana:
image: docker.elastic.co/kibana/kibana:8.14.1
image: docker.elastic.co/kibana/kibana:8.14.3
ports:
- 5601:5601
environment:
Expand Down
6 changes: 3 additions & 3 deletions docker/log/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.1
image: docker.elastic.co/elasticsearch/elasticsearch:8.14.3
ports:
- 9200:9200
environment:
Expand All @@ -11,7 +11,7 @@ services:
- xpack.ml.enabled=false
- ingest.geoip.downloader.enabled=false
kibana:
image: docker.elastic.co/kibana/kibana:8.14.1
image: docker.elastic.co/kibana/kibana:8.14.3
ports:
- 5601:5601
environment:
Expand All @@ -29,7 +29,7 @@ services:
depends_on:
- elasticsearch
kafka:
image: apache/kafka:3.7.1
image: apache/kafka:3.8.0
ports:
- 9092:9092
- 1099:1099
Expand Down
4 changes: 2 additions & 2 deletions docker/mongo/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
services:
mongo:
image: mongo:6
command: [ "--dbpath", "/data/db", "--enableFreeMonitoring", "off", "--timeStampFormat", "iso8601-utc" ]
image: mongo:7
command: [ "--dbpath", "/data/db", "--timeStampFormat", "iso8601-utc" ]
ports:
- "27017:27017"

Expand Down
4 changes: 2 additions & 2 deletions docker/redis/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
services:
redis-1:
image: redis
image: redis:7.4
ports:
- 6379
redis-2:
image: redis
image: redis:7.4
ports:
- 6379
# envoy:
Expand Down
4 changes: 2 additions & 2 deletions ext/log-processor/src/main/java/core/LogProcessorApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ private void configureIndexOption() {
private void configureKafka(Forwarders forwarders) {
kafka().uri(requiredProperty("sys.kafka.uri"));
kafka().concurrency(2);
kafka().minPoll(1024 * 1024, Duration.ofMillis(500)); // try to get at least 1M message
kafka().maxPoll(2000, 3 * 1024 * 1024); // get 3M message at max
kafka().minPoll(1024 * 1024, Duration.ofMillis(500)); // try to get at least 1M message
kafka().maxPoll(3000, 3 * 1024 * 1024); // get 3M message at max

kafka().subscribe(LogTopics.TOPIC_ACTION_LOG, ActionLogMessage.class, bind(new ActionLogMessageHandler(forwarders.action)));
kafka().subscribe(LogTopics.TOPIC_STAT, StatMessage.class, bind(StatMessageHandler.class));
Expand Down

0 comments on commit ce3b8b7

Please sign in to comment.