feat: add Spigot event producer
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
# A human-readable stable name for this Minecraft server.
|
||||
server-name: "minecraft-server"
|
||||
|
||||
# Generated once and persisted here when left empty. Do not copy the generated
|
||||
# value to another server; it is the stable identity used in CloudEvent source.
|
||||
server-id: ""
|
||||
|
||||
ingest-url: "https://events.dmg.games/events"
|
||||
send-interval-seconds: 300
|
||||
snapshot-interval-seconds: 60
|
||||
http-timeout-seconds: 15
|
||||
|
||||
batch:
|
||||
max-events: 1000
|
||||
# Leaves headroom below the ingest server's default 1 MiB request limit.
|
||||
max-bytes: 900000
|
||||
|
||||
# A send is also requested when either threshold is reached. This decision and
|
||||
# all HTTP/SQLite work happen on the outbox worker, never the server thread.
|
||||
dispatch-threshold:
|
||||
events: 1000
|
||||
bytes: 900000
|
||||
|
||||
statistics:
|
||||
# Statistic maps are partitioned before becoming CloudEvents.
|
||||
chunk-json-bytes: 200000
|
||||
# Maximum statistic/material/entity combinations read on the main thread per tick.
|
||||
operations-per-tick: 1000
|
||||
@@ -0,0 +1,6 @@
|
||||
name: SpigotEventProducer
|
||||
version: '${version}'
|
||||
main: games.dmg.spigotevents.SpigotEventProducerPlugin
|
||||
api-version: '26.2'
|
||||
author: dmg.games
|
||||
description: Writes Minecraft CloudEvents to a durable outbox and delivers them to game-ingest-server.
|
||||
Reference in New Issue
Block a user