Regarding shared state across the two kamailios, have you considered memcached module?
Or you could make domain table in db in-memory?
Best,
Charles