riak-ripple / ripple

A rich Ruby modeling layer for Riak, Basho's distributed database
Other
619 stars 152 forks source link

Support specifying the handoff_port in the ripple config. #298

Closed amerine closed 11 years ago

amerine commented 12 years ago

I had an issue with ripple in a new rails 3.2 app that stopped the test server that is generated in tmp/riak_test_server from starting.

I tracked it down to a conflict with the default handoff_port. This adds the ability to modify that port, and more importantly I think provides the user a clear idea of an additional port that's needed to get their system up and running (in their test environment anyways).

travisbot commented 12 years ago

This pull request fails (merged 10a6848d into 7fff4398).

seancribbs commented 12 years ago

Is a random port not sufficient? Have you tried using min_port?

amerine commented 12 years ago

The port isn't random on my machine. The test server app.config is generated with the handoff_port set to 8080 every time.

mattsnyder commented 12 years ago

@amerine I believe setting min_port in your ripple.yml will fix this for you. Most port numbers are derived from it.

seancribbs commented 11 years ago

What @mattsnyder said. Also you could do:

development:
  env:
    riak_core:
      handoff_port: 10000

Generally speaking, though, the min_port setting should be preferred and simplest. Closing.