Git Product home page Git Product logo

s3-probe's Introduction

The probe listen to Consul and perform checks on every endpoints found.

This a probe for S3. There are three types of checks:

  • Latency checks: the probe create, read and destroy and object and mesure the time taken by the operations.
  • Durability checks: the probe when run for the first time creates N items into a bucket then count the number of items.
  • Gateway checks: the probe use metadata from Consul to monitor a multi-cluster proxy gateway (see more in the dedicated part)

To reset the durability check, you need to remove the corresponding bucket, the probe will recreate it from scratch

Gateway monitoring

A gateway in this context is a write only S3 compatible api that writes on multiple S3-like clusters. Writes are synchronous. First the probe target the gateway Consul service, it then extract the gateway_destinations service metadata. gateway_destinations value should be formatted as follow: <dc>:<consul-service>;<dc>:<consul-service>, ... The probe will the write an object on the gateway and try to read it from all the destinations.

Build

go 1.16 or above is required.

GOOS=linux go build .

Docker build

docker build . s3-probe

Testing

Testing is mostly done with integration testing:

docker run -p 9000:9000 -d -e "MINIO_ACCESS_KEY=9PWM3PGAOU5TESTINGKEY" -e "MINIO_SECRET_KEY=p4KQAm5cLKfW2QoJG8SI5JOI3gYSECRETKEY" minio/minio server /data
go test -timeout 30s ./...

s3-probe's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.