makara icon indicating copy to clipboard operation
makara copied to clipboard

A Read-Write Proxy for Connections; Also provides an ActiveRecord adapter.

Results 81 makara issues
Sort by recently updated
recently updated
newest added

Using makara 0.4.1 and the (distribute_reads gem), I've had an issue where an incorrect connection spec causes a "Too many open files" error. The config in question is this: ```yaml...

Add missing default option in example

How does one use multiple databases. https://guides.rubyonrails.org/active_record_multiple_databases.html for example.

Bit of context: we have 2 separate databases. A Primary DB that only contains data from an AWS Region, and a Global DB which contains data that is shared across...

The connection pool management is not thread-safe. So, when running makara in thread-intensive code, such as sidekiq, subtle errors creep in. The fix is not entirely straightforward: AR 4 and...

``` def handle_request_after_third_party_record_creation CreatedResourceClass.connection.stick_to_master! CreatedResourceClass.find(params[:id]) # will go to master end ``` Is there a way to force all connections to use master rather than specifying one specific resource? I...

Hi, Is there a way to reload database.yml, somehow insert or remove read replica member in production.makara.connections section or run command to do it? In my case I will be...

Hello, I explored this gem and it worked really great except 1 point and that is the handling of replication lag. I have read your threads about countering replication lag...

I get an exception `undefined method 'query_cache_enabled' for nil:NilClass` when `master` recovers after downtime for the first requests. There is a backtrace: ``` ".../activerecord-5.1.4/lib/active_record/connection_adapters/abstract/query_cache.rb:130:in `configure_query_cache!'", ".../activesupport-5.1.4/lib/active_support/callbacks.rb:413:in `block in make_lambda'", ".../activesupport-5.1.4/lib/active_support/callbacks.rb:270:in...

Good day can not start application after adding makara logs lib/makara/config_parser.rb:177:in `all_configs' app2 | lib/makara/config_parser.rb:161:in `master_configs' app2 | lib/makara/proxy.rb:271:in `instantiate_connections' app2 | lib/makara/proxy.rb:57:in `initialize' app2 | lib/active_record/connection_adapters/makara_abstract_adapter.rb:140:in `initialize' app2 |...