-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #386 from kafkaex/extra_applications
Drop elixir < 1.5 support + various improvements * Switch to extra_applications to allow using kayrock in releases * Add an overhead timeout in server.ex to allow timeout failures to happen where they should * testing: * Use env vars in the docker-compose to ease the configuration. * Use several listeners for the Kafka brokers so that we don't have to detect the broker IPs * use random topic names to make sure each test is independent
- Loading branch information
Showing
27 changed files
with
256 additions
and
408 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
use Mix.Config | ||
|
||
config :ex_unit, capture_log: true | ||
|
||
config :kafka_ex, | ||
sync_timeout: 60_000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
################################# | ||
# Common Kafka config | ||
################################# | ||
|
||
# Note: any property `something.bla` can be configure by setting `KAFKA_SOMETHING_BLA`. | ||
|
||
######## topic creation | ||
|
||
KAFKA_CREATE_TOPICS=consumer_group_implementation_test:4:2,test0p8p0:4:2 | ||
|
||
######## zookeeper | ||
|
||
KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181 | ||
KAFKA_ZOOKEEPER_CONNECTION_TIMEOUT_MS=6000 | ||
|
||
######## advertised hosts names and protocols | ||
|
||
# alternative to KAFKA_ADVERTISED_HOST_NAME is: HOSTNAME_COMMAND: ip addr | grep -o "inet [0-9.]*" | grep -v "127\.0\.0\.1" | grep -o "[0-9.]*" | ||
KAFKA_ADVERTISED_HOST_NAME=localhost | ||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INSIDE:SSL,OUTSIDE:SSL | ||
KAFKA_ADVERTISED_PROTOCOL_NAME=OUTSIDE | ||
KAFKA_PROTOCOL_NAME=INSIDE | ||
|
||
######## SSL | ||
|
||
KAFKA_SSL_KEYSTORE_LOCATION=/ssl/server.keystore.jks | ||
KAFKA_SSL_KEYSTORE_PASSWORD=kafka_ex | ||
KAFKA_SSL_KEY_PASSWORD=kafka_ex | ||
KAFKA_SSL_TRUSTSTORE_LOCATION=/ssl/server.truststore.jks | ||
KAFKA_SSL_TRUSTSTORE_PASSWORD=kafka_ex | ||
KAFKA_SSL_SECURE_RANDOM_IMPLEMENTATION=SHA1PRNG | ||
|
||
######## Config | ||
|
||
KAFKA_DELETE_TOPIC_ENABLE=true | ||
# KAFKA_NUM_NETWORK_THREADS=3 | ||
# KAFKA_NUM_IO_THREADS=8 | ||
# KAFKA_SOCKET_SEND_BUFFER_BYTES=102400 | ||
# KAFKA_SOCKET_RECEIVE_BUFFER_BYTES=102400 | ||
# KAFKA_SOCKET_REQUEST_MAX_BYTES=104857600 | ||
KAFKA_LOG_DIRS=/tmp/kafka_log | ||
KAFKA_NUM_PARTITIONS=1 | ||
KAFKA_NUM_RECOVERY_THREADS_PER_DATA_DIR=1 | ||
KAFKA_LOG_RETENTION_HOURS=168 | ||
# KAFKA_LOG_SEGMENT_BYTES=1073741824 | ||
# KAFKA_LOG_RETENTION_CHECK_INTERVAL_MS=300000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.