code: public static DataSource createDataSource(final File yamlFile) throws SQLException, IOException {
          YamlOrchestrationMasterSlaveRuleConfiguration config = unmarshal(yamlFile);
          return createDataSource(config.getDataSources(), config.getMasterSlaveRule(), config.getProps(), config.getOrchestration());
      }
docs: Create master-slave data source.
  
  @param yamlFile YAML file for master-slave rule configuration with data sources
  @return master-slave data source
  @throws SQLException SQL exception
  @throws IOException IO exception