Skip to content

Commit

Permalink
docs: fetch tickets limit
Browse files Browse the repository at this point in the history
  • Loading branch information
castaneai committed Dec 22, 2023
1 parent 1131269 commit b9a73f9
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/differences.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,18 @@ store := statestore.NewRedisStore(redis, statestore.WithTicketTTL(5 * time.Minut

[^1]: https://github.com/googleforgames/open-match/issues/1518

## Fetch tickets limit

Open Match Backend fetches all active tickets at once.
However, if the number of tickets is huge (e.g., 100,000+ tickets),
the backend may run out of memory, causing an OOM Kill.

Therefore, minimatch Backend sets a limit on the number of tickets to be fetched at once. The default is 10,000, but it can be changed as follows

```go
NewBackend(store, assigner, minimatch.WithFetchTicketsLimit(20000))
```

## Key separation of Ticket and Assignment

To distribute the load to Redis,
Expand Down

0 comments on commit b9a73f9

Please sign in to comment.