-
Notifications
You must be signed in to change notification settings - Fork 502
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Octopus.using not working on production/staging #234
Comments
Hi @swapnilabnave Would you mind removing My guess is that you call The logs you see:
seem to state It would be helpful to see: |
I'm not sure if it relates to the problem, but you seem to be using a fork of Octopus.
Would you mind using "tchandy/octopus" or the latest "0.8.1" instead? |
Hi @eprothro Thank you for writing up a detailed document about replication with Rails on Heroku! In the last update, you added the below notice:
Do you know if the problem is fixed so that we can always use |
@mumoshu my apologies for not updating the wiki. Unfortunately, we stopped using replication on that project, so I haven't had the occasion to test At the time of writing the note that you referenced, some change had been introduced to Long story short, if the configuration mentioned in the wiki works (doesn't result in boot failures) using |
@mumoshu Thank You for looking into this.
Yes, thats right I had issues during application boot but was confined to test env. I didn't tracked much on it. But I switched over to For me |
Excellent, I agree. -Evan Prothro
|
Closing since it appears to be fixed on latest octopus release. |
Hi There, We are having issues with connecting to our replica database using Octopus. Issue is occurring on production and works completely fine on QA. When we run command - Octopus.using(:replica1) { User.last }. We get below error: - Octopus.using(:replica1) { User.last } Mysql Version is same on both the databases as well as shards.yml is same. Below is shards.yml config: - <% octopus: Checked firewall and everything looks good. Unable to figure it out. Please assist. I am able to connect to the Database using mysql command line from the source instance. |
Octopus.using
doesn't seem to work on Heroku staging environment. Per octopus.rb, connection should be of typeOctopus::Proxy
i.e.conn.is_a?(Octopus::Proxy)
should be true but it returns false.I checked on console
Development:
Staging:
Hence it doesn't use the shard(slave).
Somewhat similar to #82
I followed the wiki Replication-with-Rails-on-Heroku
Also as said is the wiki I have used following HEAD
gem "ar-octopus", github: "rocketmobile/octopus", require: "octopus"
Any help, what extra configs do I need to make it work ?
The text was updated successfully, but these errors were encountered: