Skip to content

Commit

Permalink
feat: handle too many client connection error
Browse files Browse the repository at this point in the history
  • Loading branch information
gfyrag committed Oct 23, 2024
1 parent 2b1312e commit 2d85bb3
Show file tree
Hide file tree
Showing 51 changed files with 614 additions and 134 deletions.
5 changes: 5 additions & 0 deletions cmd/serve.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"errors"
"github.com/formancehq/ledger/internal/storage/driver"
"net/http"
"time"

"github.com/formancehq/ledger/internal/bus"
otelpyroscope "github.com/grafana/otel-profiling-go"
Expand Down Expand Up @@ -88,6 +89,10 @@ func NewServeCommand() *cobra.Command {
NSCacheConfiguration: ledgercontroller.CacheConfiguration{
MaxCount: serveConfiguration.numscriptCacheMaxCount,
},
DatabaseRetryConfiguration: systemcontroller.DatabaseRetryConfiguration{
MaxRetry: 10,
Delay: time.Millisecond*100,
},
}),
bus.NewFxModule(),
ballast.Module(serveConfiguration.ballastSize),
Expand Down
Loading

0 comments on commit 2d85bb3

Please sign in to comment.