项目作者: manifoldfinance

项目描述 :
Gas pricing service
高级语言: TypeScript
项目地址: git://github.com/manifoldfinance/gas-service.git
创建时间: 2021-04-13T05:28:57Z
项目社区:https://github.com/manifoldfinance/gas-service

开源协议:

下载


Gas Service Pricing

Gas Pricing Information Service

Development

  1. docker image build -t manifoldfinance/gas-service .

Usage

  1. docker container run -p 1234:80 -e ETHEREUM_URL=http://localhost:8545 manifoldfinance/gas-service

Configuration

Healthcheck

  • interval - DURATION (default: 30s)
  • timeout - DURATION (default: 30s)
  • start-period - DURATION (default: 0s)
  • retries - DURATION (default: 3)

Interval - specifies the time between the health check for the application
container. it waits for the specified time from one check to another.

Timeout - specifies the time that the health check waits for a response to
consider the status of the container. For example, if we define 30 seconds and
our server doesn’t respond within 30 seconds, then it’s considered as failed.

Start-period - specifies the number of seconds the container needs to start;
health check will wait for that time to start.

Retries - specifies the number of consecutive health check failures required to
declare the container status as unhealthy. Health check will only try up to the
specified retry number. If the server fails consecutively up to the specified
times, it is then considered unhealthy.