Multi-tenancy for Bahmni Lite (and OpenMRS)

Few thoughts

  1. Would a single app-server (Tomcat running OMRS) be good enough? maybe - however OMRS server does take fair amount of resources. So can’t imagine on say 2 GB memory pod!
  2. Creating the database (through liquibase) is possible - just spin up another instance that will create a database and subsequently die.
  3. The single app server will need some dynamic lookup of different data sources/connections. This may require some code changes?
  4. Lucene indexes - prefer different indexes for different instances (different volumes mounted). Otherwise every patient must be associated with a clinic/hospital in the index and search modified to include that filter - should be easy. But not really absolute segregation of data.
  5. Documents that are uploaded, also need to be segregated - but that should be easy enough. e.g. different S3 bucket
1 Like