Skip to content

Create new set of LB hosts on worker boot

Thong Kuah requested to merge db_lb_new_connection_on_worker_boot into master

What does this MR do?

Create new set of LB hosts on worker boot

As Rails 6.1 has automatic discard for all AR connection pools, we need to create new connection pools.

#332913 (closed)

To test

  1. Configure your config/database.yml for DB Load Balancing:
  load_balancing:
    hosts:
      - "<same host as main host>"
      - "<same host as main host>"
  1. Restart GDK.

Observe that the error from #332913 (closed) is resolved

Screenshots (strongly suggested)

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Edited by Thong Kuah

Merge request reports