Coder Social home page Coder Social logo

odyssey_postgresql_configuration's Introduction

Configuration of Yandex Odyssey PostgreSQL Connection Pooler

First, build from sources:

git clone git://github.com/yandex/odyssey.git cd odyssey/ mkdir build cd build/ cmake -DCMAKE_BUILD_TYPE=Release .. make

This will build executable in source/odyssey, copy file to a location in your system to use, per example /opt/odyssey/:

mkdir /opt/odyssey cp source/odyssey /opt/odyssey

Copy example config file from Odyssey repo in same location (or not, you can define path of config file in odyssey startup):

cd .. cp ./scripts/debian/config /opt/odyssey

Change connection and database details from config files and run odyssey to test:

/opt/odyssey/odyssey /opt/odyssey/config

Note: if you using md5 hash password, get password hash from database:

SELECT usename, passwd FROM pg_shadow WHERE usename=$1

  • Change variables ex: NAME="odyssey" USER="root" GROUP="root" LOGDIR="/opt/odyssey/logs/" PIDDIR="/opt/odyssey/" PIDFILE="/opt/odyssey/odyssey_pid" BINFILE="/opt/odyssey/odyssey" CONFFILE="/opt/odyssey/config" CMD="start-stop-daemon --verbose --pidfile $PIDFILE"

  • Copy to init.d cp init /etc/init.d/odyssey git executable rights: chmod +x /etc/init.d/odyssey start odyssey: /etc/init.d/odyssey start

odyssey_postgresql_configuration's People

Contributors

fabiocmazzo avatar

Watchers

 avatar  avatar

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.