xcherryio / xcherry

server and main repo of xCherry project
Apache License 2.0
26 stars 1 forks source link

add cluster support #122

Closed zklgame closed 6 months ago

zklgame commented 6 months ago

Why make this pull request?

Add cluster option for the Async service.

How to test this pull request?

go run cmd/server/main.go --config ./config/development-postgres-cluster.yaml

TODO in next MRs

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 34.32836% with 220 lines in your changes are missing coverage. Please review.

Project coverage is 60.11%. Comparing base (c5da3b2) to head (59eb787).

Files Patch % Lines
service/async/service_impl.go 30.12% 109 Missing and 7 partials :warning:
cluster/event_delegate.go 0.00% 30 Missing :warning:
config/config.go 15.62% 25 Missing and 2 partials :warning:
cluster/delegate.go 0.00% 26 Missing :warning:
service/async/default_server.go 69.38% 11 Missing and 4 partials :warning:
cmd/server/bootstrap/xcherry.go 55.55% 3 Missing and 1 partial :warning:
engine/immediate_task_queue.go 0.00% 1 Missing :warning:
engine/timer_task_queue.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #122 +/- ## ========================================== - Coverage 61.38% 60.11% -1.28% ========================================== Files 88 91 +3 Lines 6936 7200 +264 ========================================== + Hits 4258 4328 +70 - Misses 2404 2591 +187 - Partials 274 281 +7 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.