Skip to content
This repository has been archived by the owner on Jul 20, 2023. It is now read-only.

A simple discovery helper tool for discovering a MariaDB Server by querying k/v store.

Notifications You must be signed in to change notification settings

bstaijen/mariadb-galera-discovery-tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

Discovery tool for Discovering MariaDB Server

This is a small golang application build for querying the consul catalog API and returning a comma-seperated-list containing service addresses.

Parameters

  • -address - The address were consul is running. Eq: consul:8500
  • -service - Name of the service you are searching. Eq: galera-db
  • -debug - Adds debug info to the output.
  • -version - Enables you to only show the version of the tool.

Returns

A comma-separated list containing the service addresses Example: 10.0.0.1,10.0.0.2,10.0.0.3

How to use it

Example 1 mariadb-disover-tool -address=consul:8500 -service=galera-db

Example 2 mariadb-disover-tool -address=192.168.99.100:8500 -service=galera-db -debug

Example 3 mariadb-disover-tool -version

To Do

  • Add godep for dependency management
  • Add extra discovery backends.

About

A simple discovery helper tool for discovering a MariaDB Server by querying k/v store.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages