forked from 0xProject/rpc-gateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
metrics: | ||
port: 9090 # port for prometheus metrics, served on /metrics and / | ||
|
||
proxy: | ||
port: 8000 # port for RPC gateway | ||
upstreamTimeout: "1s" # when is a request considered timed out | ||
|
||
healthChecks: | ||
interval: "5s" # how often to do healthchecks | ||
timeout: "1s" # when should the timeout occur and considered unhealthy | ||
failureThreshold: 2 # how many failed checks until marked as unhealthy | ||
successThreshold: 1 # how many successes to be marked as healthy again | ||
|
||
targets: # the order here determines the failover order | ||
- name: "Cloudflare" | ||
connection: | ||
http: # ws is supported by default, it will be a sticky connection. | ||
url: "https://cloudflare-eth.com" | ||
- name: "lodestar" | ||
connection: | ||
http: # ws is supported by default, it will be a sticky connection. | ||
url: "https://lodestar-goerlirpc.chainsafe.io" |