GithubHelp home page GithubHelp logo

puzza007 / riakc_poolboy Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 9.0 1.09 MB

Riak Connection Pool

License: BSD 2-Clause "Simplified" License

Erlang 98.75% Makefile 1.25%
poolboy erlang riak-connection-pool

riakc_poolboy's Introduction

Riak Protocol Buffers Client Pool

Build Status

About

Riak client connection pool using poolboy

Usage

SizeArgs = [{size, 10},
            {max_overflow, 20}],
WorkerArgs = [{hostname, "127.0.0.1"},
              {port, 8087},
              {ping_every, 50000}, %% undefined or absent to disable
              {sync_connect, true}, %% useful for testing - workers must be connected to be available
              {options, [{auto_reconnect, true}]}],
PoolName = badger_pool,
riakc_poolboy:start_pool(PoolName, SizeArgs, WorkerArgs),

{ok, Obj} = riakc_poolboy:get(PoolName, <<"a_bucket">>, <<"a_key">>).

riakc_poolboy:stop_pool(PoolName).

TODO

  • Support streaming functions
  • More tests

riakc_poolboy's People

Contributors

aeronotix avatar konradkaplita avatar loucash avatar puzza007 avatar rpt avatar xandkar avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

riakc_poolboy's Issues

riak stats gatherer crashes when the pool is under heavy load

11:14:12.575 [error] Supervisor riakc_pool_sup_airos_lview_riak_pool had child riakc_pool_status started with riakc_pool_status:start_link(airos_lview_riak_pool) at undefined exit with reason {timeout,{gen_server,call,[airos_lview_riak_pool,get_all_workers]}} in context start_error

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.