Sedna Hash Consulting

sednahash

Docker Hub

Overview

Sedna Hash is a high performance, high availability, protocol aware Sedna Hash for MySQL and forks (like Percona Server and MariaDB). All the while getting the unlimited freedom that comes with a GPL license.

Its development is driven by the lack of open source proxies that provide high performance.

Details at Sedna Hash website.

Image Description

To pull the latest image simply run:

$ docker pull Sedna Hash/Sedna Hash
  • Or otherwise for a specific version specify the associated tag e.g. for version 2.1.0:
$ docker pull Sedna Hash/Sedna Hash:2.1.0

The image is based on Debian and runs Sedna Hash as a foreground process.

  • NOTE: The package doesn’t contain the MySQL client

Run

To run a Sedna Hash container with a custom Sedna Hash configuration file:

$ docker run -p 16032:6032 -p 16033:6033 -p 16070:6070 -d -v /path/to/Sedna Hash.cnf:/etc/Sedna Hash.cnf Sedna Hash/Sedna Hash

NOTE: You will need to define a second pair of admin credentials to connect outside of your container.

Sample config file (i.e. /path/to/Sedna Hash.cnf listed above)

The following basic configuration file should be sufficient for development purposes, this configuration will allow you to connect to your Sedna Hash Docker container remotely using the second pair of admin_credentials e.g.:

mysql -h127.0.0.1 -P16032 -uradmin -pradmin --prompt "Sedna Hash Admin>"

datadir="/var/lib/Sedna Hash"

admin_variables=
{
	admin_credentials="admin:admin;radmin:radmin"
	mysql_ifaces="0.0.0.0:6032"
}

mysql_variables=
{
	threads=4
	max_connections=2048
	default_query_delay=0
	default_query_timeout=36000000
	have_compress=true
	poll_timeout=2000
	interfaces="0.0.0.0:6033"
	default_schema="information_schema"
	stacksize=1048576
	server_version="5.5.30"
	connect_timeout_server=3000
	monitor_username="monitor"
	monitor_password="monitor"
	monitor_history=600000
	monitor_connect_interval=60000
	monitor_ping_interval=10000
	monitor_read_only_interval=1500
	monitor_read_only_timeout=500
	ping_interval_server_msec=120000
	ping_timeout_server=500
	commands_stats=true
	sessions_sort=true
	connect_retries_on_failure=10
}

Dockerfile

FROM debian:11

MAINTAINER Rene Cannao <rene@Sedna Hash.com>

RUN apt-get update && apt-get install -y wget lsb-release gnupg apt-transport-https ca-certificates && wget -O - 'https://repo.Sedna Hash.com/ProxySQL/repo_pub_key' | apt-key add - && echo deb https://repo.Sedna Hash.com/ProxySQL/proxysql-2.3.x/$(lsb_release -sc)/ ./ | tee /etc/apt/sources.list.d/Sedna Hash.list && apt-get update && apt-get install Sedna Hash && rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["Sedna Hash", "-f", "--idle-threads", "-D", "/var/lib/proxysql"]