Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
unit-test:
if: github.repository_owner == 'getsentry'
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu-24.04, ubuntu-24.04-arm]
Expand All @@ -40,6 +41,7 @@ jobs:
integration-test:
if: github.repository_owner == 'getsentry'
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
fail-fast: false
matrix:
Expand Down
3 changes: 3 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -264,3 +264,6 @@ runs:
echo "::group::Inspect failure - docker compose logs"
docker compose logs
echo "::endgroup::"
echo "::group::Inspect failure - docker stats"
docker stats --no-stream
echo "::endgroup::"
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@ services:
KAFKA_TOOLS_LOG4J_LOGLEVEL: "WARN"
ulimits:
nofile:
soft: 4096
hard: 4096
soft: 100000
hard: 100000
volumes:
- "sentry-kafka:/var/lib/kafka/data"
- "sentry-kafka-log:/var/lib/kafka/log"
Expand Down
12 changes: 11 additions & 1 deletion sentry/sentry.conf.example.py
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,17 @@ def get_internal_network():
DEFAULT_KAFKA_OPTIONS = {
"bootstrap.servers": "kafka:9092",
"message.max.bytes": 50000000,
"socket.timeout.ms": 1000,
"socket.timeout.ms": 10000, # Timeout for individual socket operations (send/recv)
"request.timeout.ms": 30000, # Max time to wait for a broker response before failing
"retries": 5, # Number of retries for transient/retriable request failures
"retry.backoff.ms": 1000, # Wait time between retry attempts
"reconnect.backoff.ms": 1000, # Initial wait before reconnecting after a lost connection
"reconnect.backoff.max.ms": 10000, # Upper bound for exponential backoff on reconnect attempts
# Session & heartbeat — must satisfy:
# heartbeat.interval.ms < session.timeout.ms < max.poll.interval.ms
"session.timeout.ms": 60000, # Grace period before broker evicts an unresponsive consumer (default: 45s)
"heartbeat.interval.ms": 20000, # How often the consumer sends a heartbeat — must be 1/3 of session.timeout.ms
"max.poll.interval.ms": 600000, # Max allowed time between poll() calls before the consumer is considered dead
}

SENTRY_EVENTSTREAM = "sentry.eventstream.kafka.KafkaEventStream"
Expand Down
Loading