mirror of
				https://github.com/apache/cloudstack.git
				synced 2025-10-26 08:42:29 +01:00 
			
		
		
		
	Dynamic loading of DB driver + support for other DB providers
This commit is contained in:
		
							parent
							
								
									570b676b1f
								
							
						
					
					
						commit
						02c5d44f0b
					
				| @ -21,6 +21,7 @@ DBROOTPW= | |||||||
| MSLOG=vmops.log | MSLOG=vmops.log | ||||||
| APISERVERLOG=api.log | APISERVERLOG=api.log | ||||||
| DBHOST=localhost | DBHOST=localhost | ||||||
|  | DBDRIVER=jdbc:mysql | ||||||
| AGENTLOGDIR=logs | AGENTLOGDIR=logs | ||||||
| AGENTLOG=logs/agent.log | AGENTLOG=logs/agent.log | ||||||
| MSMNTDIR=/mnt | MSMNTDIR=/mnt | ||||||
|  | |||||||
| @ -25,6 +25,7 @@ region.id=1 | |||||||
| db.cloud.username=@DBUSER@ | db.cloud.username=@DBUSER@ | ||||||
| db.cloud.password=@DBPW@ | db.cloud.password=@DBPW@ | ||||||
| db.cloud.host=@DBHOST@ | db.cloud.host=@DBHOST@ | ||||||
|  | db.cloud.driver=@DBDRIVER@ | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -56,6 +57,7 @@ db.cloud.encrypt.secret= | |||||||
| db.usage.username=@DBUSER@ | db.usage.username=@DBUSER@ | ||||||
| db.usage.password=@DBPW@ | db.usage.password=@DBPW@ | ||||||
| db.usage.host=@DBHOST@ | db.usage.host=@DBHOST@ | ||||||
|  | db.usage.driver=@DBDRIVER@ | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -69,6 +71,7 @@ db.usage.url.params= | |||||||
| db.simulator.username=@DBUSER@ | db.simulator.username=@DBUSER@ | ||||||
| db.simulator.password=@DBPW@ | db.simulator.password=@DBPW@ | ||||||
| db.simulator.host=@DBHOST@ | db.simulator.host=@DBHOST@ | ||||||
|  | db.simulator.driver=@DBDRIVER@ | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
| @ -26,6 +26,7 @@ db.cloud.username=cloud | |||||||
| db.cloud.password=cloud | db.cloud.password=cloud | ||||||
| db.root.password= | db.root.password= | ||||||
| db.cloud.host=localhost | db.cloud.host=localhost | ||||||
|  | db.cloud.driver=jdbc:mysql | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -46,6 +47,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi | |||||||
| db.usage.username=cloud | db.usage.username=cloud | ||||||
| db.usage.password=cloud | db.usage.password=cloud | ||||||
| db.usage.host=localhost | db.usage.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.usage.driver=jdbc:mysql | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -59,6 +62,8 @@ db.usage.autoReconnect=true | |||||||
| db.simulator.username=cloud | db.simulator.username=cloud | ||||||
| db.simulator.password=cloud | db.simulator.password=cloud | ||||||
| db.simulator.host=localhost | db.simulator.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.simulator.driver=jdbc:mysql | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
| @ -20,6 +20,8 @@ import java.io.Closeable; | |||||||
| import java.io.File; | import java.io.File; | ||||||
| import java.io.IOException; | import java.io.IOException; | ||||||
| import java.sql.Connection; | import java.sql.Connection; | ||||||
|  | import java.sql.Driver; | ||||||
|  | import java.sql.DriverManager; | ||||||
| import java.sql.PreparedStatement; | import java.sql.PreparedStatement; | ||||||
| import java.sql.ResultSet; | import java.sql.ResultSet; | ||||||
| import java.sql.SQLException; | import java.sql.SQLException; | ||||||
| @ -1024,6 +1026,7 @@ public class TransactionLegacy implements Closeable { | |||||||
|             final String cloudUsername = dbProps.getProperty("db.cloud.username"); |             final String cloudUsername = dbProps.getProperty("db.cloud.username"); | ||||||
|             final String cloudPassword = dbProps.getProperty("db.cloud.password"); |             final String cloudPassword = dbProps.getProperty("db.cloud.password"); | ||||||
|             final String cloudHost = dbProps.getProperty("db.cloud.host"); |             final String cloudHost = dbProps.getProperty("db.cloud.host"); | ||||||
|  |             final String cloudDriver = dbProps.getProperty("db.cloud.driver"); | ||||||
|             final int cloudPort = Integer.parseInt(dbProps.getProperty("db.cloud.port")); |             final int cloudPort = Integer.parseInt(dbProps.getProperty("db.cloud.port")); | ||||||
|             final String cloudDbName = dbProps.getProperty("db.cloud.name"); |             final String cloudDbName = dbProps.getProperty("db.cloud.name"); | ||||||
|             final boolean cloudAutoReconnect = Boolean.parseBoolean(dbProps.getProperty("db.cloud.autoReconnect")); |             final boolean cloudAutoReconnect = Boolean.parseBoolean(dbProps.getProperty("db.cloud.autoReconnect")); | ||||||
| @ -1072,10 +1075,12 @@ public class TransactionLegacy implements Closeable { | |||||||
|                     new GenericObjectPool(null, cloudMaxActive, GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION, cloudMaxWait, cloudMaxIdle, cloudTestOnBorrow, false, |                     new GenericObjectPool(null, cloudMaxActive, GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION, cloudMaxWait, cloudMaxIdle, cloudTestOnBorrow, false, | ||||||
|                             cloudTimeBtwEvictionRunsMillis, 1, cloudMinEvcitableIdleTimeMillis, cloudTestWhileIdle); |                             cloudTimeBtwEvictionRunsMillis, 1, cloudMinEvcitableIdleTimeMillis, cloudTestWhileIdle); | ||||||
| 
 | 
 | ||||||
|             final ConnectionFactory cloudConnectionFactory = |             final String cloudConnectionUri = cloudDriver + "://" + cloudHost + (s_dbHAEnabled ? "," + cloudSlaves : "") + ":" + cloudPort + "/" + cloudDbName + | ||||||
|                     new DriverManagerConnectionFactory("jdbc:mysql://" + cloudHost + (s_dbHAEnabled ? "," + cloudSlaves : "") + ":" + cloudPort + "/" + cloudDbName + |  | ||||||
|                     "?autoReconnect=" + cloudAutoReconnect + (url != null ? "&" + url : "") + (useSSL ? "&useSSL=true" : "") + |                     "?autoReconnect=" + cloudAutoReconnect + (url != null ? "&" + url : "") + (useSSL ? "&useSSL=true" : "") + | ||||||
|                             (s_dbHAEnabled ? "&" + cloudDbHAParams : "") + (s_dbHAEnabled ? "&loadBalanceStrategy=" + loadBalanceStrategy : ""), cloudUsername, cloudPassword); |                     (s_dbHAEnabled ? "&" + cloudDbHAParams : "") + (s_dbHAEnabled ? "&loadBalanceStrategy=" + loadBalanceStrategy : ""); | ||||||
|  |             loadDbDriver(cloudConnectionUri); | ||||||
|  | 
 | ||||||
|  |             final ConnectionFactory cloudConnectionFactory = new DriverManagerConnectionFactory(cloudConnectionUri, cloudUsername, cloudPassword); | ||||||
| 
 | 
 | ||||||
|             final KeyedObjectPoolFactory poolableObjFactory = (cloudPoolPreparedStatements ? new StackKeyedObjectPoolFactory() : null); |             final KeyedObjectPoolFactory poolableObjFactory = (cloudPoolPreparedStatements ? new StackKeyedObjectPoolFactory() : null); | ||||||
| 
 | 
 | ||||||
| @ -1092,6 +1097,7 @@ public class TransactionLegacy implements Closeable { | |||||||
|             final String usageUsername = dbProps.getProperty("db.usage.username"); |             final String usageUsername = dbProps.getProperty("db.usage.username"); | ||||||
|             final String usagePassword = dbProps.getProperty("db.usage.password"); |             final String usagePassword = dbProps.getProperty("db.usage.password"); | ||||||
|             final String usageHost = dbProps.getProperty("db.usage.host"); |             final String usageHost = dbProps.getProperty("db.usage.host"); | ||||||
|  |             final String usageDriver = dbProps.getProperty("db.usage.driver"); | ||||||
|             final int usagePort = Integer.parseInt(dbProps.getProperty("db.usage.port")); |             final int usagePort = Integer.parseInt(dbProps.getProperty("db.usage.port")); | ||||||
|             final String usageDbName = dbProps.getProperty("db.usage.name"); |             final String usageDbName = dbProps.getProperty("db.usage.name"); | ||||||
|             final boolean usageAutoReconnect = Boolean.parseBoolean(dbProps.getProperty("db.usage.autoReconnect")); |             final boolean usageAutoReconnect = Boolean.parseBoolean(dbProps.getProperty("db.usage.autoReconnect")); | ||||||
| @ -1100,11 +1106,12 @@ public class TransactionLegacy implements Closeable { | |||||||
|             final GenericObjectPool usageConnectionPool = |             final GenericObjectPool usageConnectionPool = | ||||||
|                     new GenericObjectPool(null, usageMaxActive, GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION, usageMaxWait, usageMaxIdle); |                     new GenericObjectPool(null, usageMaxActive, GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION, usageMaxWait, usageMaxIdle); | ||||||
| 
 | 
 | ||||||
|             final ConnectionFactory usageConnectionFactory = |             final String usageConnectionUri = usageDriver + "://" + usageHost + (s_dbHAEnabled ? "," + dbProps.getProperty("db.cloud.slaves") : "") + ":" + usagePort + | ||||||
|                     new DriverManagerConnectionFactory("jdbc:mysql://" + usageHost + (s_dbHAEnabled ? "," + dbProps.getProperty("db.cloud.slaves") : "") + ":" + usagePort + |  | ||||||
|                     "/" + usageDbName + "?autoReconnect=" + usageAutoReconnect + (usageUrl != null ? "&" + usageUrl : "") + |                     "/" + usageDbName + "?autoReconnect=" + usageAutoReconnect + (usageUrl != null ? "&" + usageUrl : "") + | ||||||
|                             (s_dbHAEnabled ? "&" + getDBHAParams("usage", dbProps) : "") + (s_dbHAEnabled ? "&loadBalanceStrategy=" + loadBalanceStrategy : ""), usageUsername, |                     (s_dbHAEnabled ? "&" + getDBHAParams("usage", dbProps) : "") + (s_dbHAEnabled ? "&loadBalanceStrategy=" + loadBalanceStrategy : ""); | ||||||
|                             usagePassword); |             loadDbDriver(usageConnectionUri); | ||||||
|  | 
 | ||||||
|  |             final ConnectionFactory usageConnectionFactory = new DriverManagerConnectionFactory(usageConnectionUri, usageUsername, usagePassword); | ||||||
| 
 | 
 | ||||||
|             final PoolableConnectionFactory usagePoolableConnectionFactory = |             final PoolableConnectionFactory usagePoolableConnectionFactory = | ||||||
|                     new PoolableConnectionFactory(usageConnectionFactory, usageConnectionPool, new StackKeyedObjectPoolFactory(), null, false, false); |                     new PoolableConnectionFactory(usageConnectionFactory, usageConnectionPool, new StackKeyedObjectPoolFactory(), null, false, false); | ||||||
| @ -1120,6 +1127,7 @@ public class TransactionLegacy implements Closeable { | |||||||
|                 final String simulatorUsername = dbProps.getProperty("db.simulator.username"); |                 final String simulatorUsername = dbProps.getProperty("db.simulator.username"); | ||||||
|                 final String simulatorPassword = dbProps.getProperty("db.simulator.password"); |                 final String simulatorPassword = dbProps.getProperty("db.simulator.password"); | ||||||
|                 final String simulatorHost = dbProps.getProperty("db.simulator.host"); |                 final String simulatorHost = dbProps.getProperty("db.simulator.host"); | ||||||
|  |                 final String simulatorDriver = dbProps.getProperty("db.simulator.driver"); | ||||||
|                 final int simulatorPort = Integer.parseInt(dbProps.getProperty("db.simulator.port")); |                 final int simulatorPort = Integer.parseInt(dbProps.getProperty("db.simulator.port")); | ||||||
|                 final String simulatorDbName = dbProps.getProperty("db.simulator.name"); |                 final String simulatorDbName = dbProps.getProperty("db.simulator.name"); | ||||||
|                 final boolean simulatorAutoReconnect = Boolean.parseBoolean(dbProps.getProperty("db.simulator.autoReconnect")); |                 final boolean simulatorAutoReconnect = Boolean.parseBoolean(dbProps.getProperty("db.simulator.autoReconnect")); | ||||||
| @ -1127,9 +1135,11 @@ public class TransactionLegacy implements Closeable { | |||||||
|                 final GenericObjectPool simulatorConnectionPool = |                 final GenericObjectPool simulatorConnectionPool = | ||||||
|                         new GenericObjectPool(null, simulatorMaxActive, GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION, simulatorMaxWait, simulatorMaxIdle); |                         new GenericObjectPool(null, simulatorMaxActive, GenericObjectPool.DEFAULT_WHEN_EXHAUSTED_ACTION, simulatorMaxWait, simulatorMaxIdle); | ||||||
| 
 | 
 | ||||||
|                 final ConnectionFactory simulatorConnectionFactory = |                 final String simulatorConnectionUri = simulatorDriver + "://" + simulatorHost + ":" + simulatorPort + "/" + simulatorDbName + "?autoReconnect=" + | ||||||
|                         new DriverManagerConnectionFactory("jdbc:mysql://" + simulatorHost + ":" + simulatorPort + "/" + simulatorDbName + "?autoReconnect=" + |                         simulatorAutoReconnect; | ||||||
|                                 simulatorAutoReconnect, simulatorUsername, simulatorPassword); |                 loadDbDriver(simulatorConnectionUri); | ||||||
|  | 
 | ||||||
|  |                 final ConnectionFactory simulatorConnectionFactory = new DriverManagerConnectionFactory(simulatorConnectionUri, simulatorUsername, simulatorPassword); | ||||||
| 
 | 
 | ||||||
|                 final PoolableConnectionFactory simulatorPoolableConnectionFactory = |                 final PoolableConnectionFactory simulatorPoolableConnectionFactory = | ||||||
|                         new PoolableConnectionFactory(simulatorConnectionFactory, simulatorConnectionPool, new StackKeyedObjectPoolFactory(), null, false, false); |                         new PoolableConnectionFactory(simulatorConnectionFactory, simulatorConnectionPool, new StackKeyedObjectPoolFactory(), null, false, false); | ||||||
| @ -1147,6 +1157,16 @@ public class TransactionLegacy implements Closeable { | |||||||
|         } |         } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  |     private static void loadDbDriver(String dbConnectionUri) { | ||||||
|  |         try { | ||||||
|  |             Driver driver = DriverManager.getDriver(dbConnectionUri); | ||||||
|  |             s_logger.debug("Successfully loaded DB driver " + driver.getClass().getName() + " for connection " + dbConnectionUri); | ||||||
|  |         } catch (SQLException e) { | ||||||
|  |             s_logger.error("Failed to load DB driver for connection " + dbConnectionUri, e); | ||||||
|  |             throw new CloudRuntimeException("Failed to load DB driver for connection " + dbConnectionUri, e); | ||||||
|  |         } | ||||||
|  |     } | ||||||
|  | 
 | ||||||
|     private static String getDBHAParams(String dbName, Properties dbProps) { |     private static String getDBHAParams(String dbName, Properties dbProps) { | ||||||
|         StringBuilder sb = new StringBuilder(); |         StringBuilder sb = new StringBuilder(); | ||||||
|         sb.append("failOverReadOnly=" + dbProps.getProperty("db." + dbName + ".failOverReadOnly")); |         sb.append("failOverReadOnly=" + dbProps.getProperty("db." + dbName + ".failOverReadOnly")); | ||||||
|  | |||||||
| @ -29,6 +29,7 @@ db.cloud.username=cloud | |||||||
| db.cloud.password=cloud | db.cloud.password=cloud | ||||||
| db.root.password= | db.root.password= | ||||||
| db.cloud.host=localhost | db.cloud.host=localhost | ||||||
|  | db.cloud.driver=jdbc:mysql | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -49,6 +50,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi | |||||||
| db.usage.username=cloud | db.usage.username=cloud | ||||||
| db.usage.password=cloud | db.usage.password=cloud | ||||||
| db.usage.host=localhost | db.usage.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.usage.driver=jdbc:mysql | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -62,6 +65,8 @@ db.usage.autoReconnect=true | |||||||
| db.simulator.username=cloud | db.simulator.username=cloud | ||||||
| db.simulator.password=cloud | db.simulator.password=cloud | ||||||
| db.simulator.host=localhost | db.simulator.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.simulator.driver=jdbc:mysql | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
| @ -22,6 +22,7 @@ db.cloud.username=cloud | |||||||
| db.cloud.password=cloud | db.cloud.password=cloud | ||||||
| db.root.password= | db.root.password= | ||||||
| db.cloud.host=localhost | db.cloud.host=localhost | ||||||
|  | db.cloud.driver=jdbc:mysql | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -42,6 +43,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi | |||||||
| db.usage.username=cloud | db.usage.username=cloud | ||||||
| db.usage.password=cloud | db.usage.password=cloud | ||||||
| db.usage.host=localhost | db.usage.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.usage.driver=jdbc:mysql | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -55,6 +58,8 @@ db.usage.autoReconnect=true | |||||||
| db.simulator.username=cloud | db.simulator.username=cloud | ||||||
| db.simulator.password=cloud | db.simulator.password=cloud | ||||||
| db.simulator.host=localhost | db.simulator.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.simulator.driver=jdbc:mysql | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
| @ -21,6 +21,7 @@ DBROOTPW= | |||||||
| MSLOG=vmops.log | MSLOG=vmops.log | ||||||
| APISERVERLOG=api.log | APISERVERLOG=api.log | ||||||
| DBHOST=localhost | DBHOST=localhost | ||||||
|  | DBDRIVER=jdbc:mysql | ||||||
| COMPONENTS-SPEC=components-premium.xml | COMPONENTS-SPEC=components-premium.xml | ||||||
| REMOTEHOST=localhost | REMOTEHOST=localhost | ||||||
| AGENTCLASSPATH= | AGENTCLASSPATH= | ||||||
|  | |||||||
| @ -21,6 +21,7 @@ DBROOTPW= | |||||||
| MSLOG=vmops.log | MSLOG=vmops.log | ||||||
| APISERVERLOG=api.log | APISERVERLOG=api.log | ||||||
| DBHOST=localhost | DBHOST=localhost | ||||||
|  | DBDRIVER=jdbc:mysql | ||||||
| COMPONENTS-SPEC=components-premium.xml | COMPONENTS-SPEC=components-premium.xml | ||||||
| REMOTEHOST=localhost | REMOTEHOST=localhost | ||||||
| AGENTCLASSPATH= | AGENTCLASSPATH= | ||||||
|  | |||||||
| @ -25,6 +25,7 @@ region.id=1 | |||||||
| db.cloud.username=cloud | db.cloud.username=cloud | ||||||
| db.cloud.password=ENC(vlzQjmqOV4s5q7n+S1OMbA==) | db.cloud.password=ENC(vlzQjmqOV4s5q7n+S1OMbA==) | ||||||
| db.cloud.host=localhost | db.cloud.host=localhost | ||||||
|  | db.cloud.driver=jdbc:mysql | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -56,6 +57,8 @@ db.cloud.encrypt.secret=ENC(zaGuSF5a4KyWayn2t0yyjDa0HjdToVtZ) | |||||||
| db.usage.password=ENC(cQEcN5aVucSYK+WUkPjDcw==) | db.usage.password=ENC(cQEcN5aVucSYK+WUkPjDcw==) | ||||||
| db.usage.username=cloud | db.usage.username=cloud | ||||||
| db.usage.host=localhost | db.usage.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.usage.driver=jdbc:mysql | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -69,6 +72,8 @@ db.usage.url.params= | |||||||
| db.simulator.username=cloud | db.simulator.username=cloud | ||||||
| db.simulator.password=cloud | db.simulator.password=cloud | ||||||
| db.simulator.host=localhost | db.simulator.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.simulator.driver=jdbc:mysql | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
| @ -21,6 +21,7 @@ DBROOTPW= | |||||||
| MSLOG=vmops.log | MSLOG=vmops.log | ||||||
| APISERVERLOG=api.log | APISERVERLOG=api.log | ||||||
| DBHOST=localhost | DBHOST=localhost | ||||||
|  | DBDRIVER=jdbc:mysql | ||||||
| COMPONENTS-SPEC=components-premium.xml | COMPONENTS-SPEC=components-premium.xml | ||||||
| REMOTEHOST=localhost | REMOTEHOST=localhost | ||||||
| AGENTCLASSPATH= | AGENTCLASSPATH= | ||||||
|  | |||||||
| @ -21,6 +21,7 @@ DBROOTPW= | |||||||
| MSLOG=vmops.log | MSLOG=vmops.log | ||||||
| APISERVERLOG=api.log | APISERVERLOG=api.log | ||||||
| DBHOST=localhost | DBHOST=localhost | ||||||
|  | DBDRIVER=jdbc:mysql | ||||||
| COMPONENTS-SPEC=components-premium.xml | COMPONENTS-SPEC=components-premium.xml | ||||||
| REMOTEHOST=localhost | REMOTEHOST=localhost | ||||||
| AGENTCLASSPATH= | AGENTCLASSPATH= | ||||||
|  | |||||||
| @ -21,6 +21,7 @@ DBROOTPW= | |||||||
| MSLOG=vmops.log | MSLOG=vmops.log | ||||||
| APISERVERLOG=api.log | APISERVERLOG=api.log | ||||||
| DBHOST=localhost | DBHOST=localhost | ||||||
|  | DBDRIVER=jdbc:mysql | ||||||
| COMPONENTS-SPEC=components-premium.xml | COMPONENTS-SPEC=components-premium.xml | ||||||
| REMOTEHOST=localhost | REMOTEHOST=localhost | ||||||
| AGENTCLASSPATH= | AGENTCLASSPATH= | ||||||
|  | |||||||
| @ -27,6 +27,7 @@ db.cloud.username=cloud | |||||||
| db.cloud.password=cloud | db.cloud.password=cloud | ||||||
| db.root.password= | db.root.password= | ||||||
| db.cloud.host=localhost | db.cloud.host=localhost | ||||||
|  | db.cloud.driver=jdbc:mysql | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -47,6 +48,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi | |||||||
| db.usage.username=cloud | db.usage.username=cloud | ||||||
| db.usage.password=cloud | db.usage.password=cloud | ||||||
| db.usage.host=localhost | db.usage.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.usage.driver=jdbc:mysql | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -60,6 +63,8 @@ db.usage.autoReconnect=true | |||||||
| db.simulator.username=cloud | db.simulator.username=cloud | ||||||
| db.simulator.password=cloud | db.simulator.password=cloud | ||||||
| db.simulator.host=localhost | db.simulator.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.simulator.driver=jdbc:mysql | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
| @ -22,6 +22,7 @@ db.cloud.username=cloud | |||||||
| db.cloud.password=cloud | db.cloud.password=cloud | ||||||
| db.root.password= | db.root.password= | ||||||
| db.cloud.host=localhost | db.cloud.host=localhost | ||||||
|  | db.cloud.driver=jdbc:mysql | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -42,6 +43,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi | |||||||
| db.usage.username=cloud | db.usage.username=cloud | ||||||
| db.usage.password=cloud | db.usage.password=cloud | ||||||
| db.usage.host=localhost | db.usage.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.usage.driver=jdbc:mysql | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -55,6 +58,8 @@ db.usage.autoReconnect=true | |||||||
| db.simulator.username=cloud | db.simulator.username=cloud | ||||||
| db.simulator.password=cloud | db.simulator.password=cloud | ||||||
| db.simulator.host=localhost | db.simulator.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.simulator.driver=jdbc:mysql | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
| @ -26,6 +26,7 @@ db.cloud.username=cloud | |||||||
| db.cloud.password=cloud | db.cloud.password=cloud | ||||||
| db.root.password= | db.root.password= | ||||||
| db.cloud.host=localhost | db.cloud.host=localhost | ||||||
|  | db.cloud.driver=jdbc:mysql | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -46,6 +47,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi | |||||||
| db.usage.username=cloud | db.usage.username=cloud | ||||||
| db.usage.password=cloud | db.usage.password=cloud | ||||||
| db.usage.host=localhost | db.usage.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.usage.driver=jdbc:mysql | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -59,6 +62,8 @@ db.usage.autoReconnect=true | |||||||
| db.simulator.username=cloud | db.simulator.username=cloud | ||||||
| db.simulator.password=cloud | db.simulator.password=cloud | ||||||
| db.simulator.host=localhost | db.simulator.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.simulator.driver=jdbc:mysql | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
| @ -27,6 +27,7 @@ db.cloud.username=cloud | |||||||
| db.cloud.password=cloud | db.cloud.password=cloud | ||||||
| db.root.password= | db.root.password= | ||||||
| db.cloud.host=localhost | db.cloud.host=localhost | ||||||
|  | db.cloud.driver=jdbc:mysql | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -47,6 +48,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi | |||||||
| db.usage.username=cloud | db.usage.username=cloud | ||||||
| db.usage.password=cloud | db.usage.password=cloud | ||||||
| db.usage.host=localhost | db.usage.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.usage.driver=jdbc:mysql | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -60,6 +63,8 @@ db.usage.autoReconnect=true | |||||||
| db.simulator.username=cloud | db.simulator.username=cloud | ||||||
| db.simulator.password=cloud | db.simulator.password=cloud | ||||||
| db.simulator.host=localhost | db.simulator.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.simulator.driver=jdbc:mysql | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
| @ -27,6 +27,7 @@ db.cloud.username=cloud | |||||||
| db.cloud.password=cloud | db.cloud.password=cloud | ||||||
| db.root.password= | db.root.password= | ||||||
| db.cloud.host=localhost | db.cloud.host=localhost | ||||||
|  | db.cloud.driver=jdbc:mysql | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -47,6 +48,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi | |||||||
| db.usage.username=cloud | db.usage.username=cloud | ||||||
| db.usage.password=cloud | db.usage.password=cloud | ||||||
| db.usage.host=localhost | db.usage.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.usage.driver=jdbc:mysql | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -60,6 +63,8 @@ db.usage.autoReconnect=true | |||||||
| db.simulator.username=cloud | db.simulator.username=cloud | ||||||
| db.simulator.password=cloud | db.simulator.password=cloud | ||||||
| db.simulator.host=localhost | db.simulator.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.simulator.driver=jdbc:mysql | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
| @ -83,7 +83,7 @@ | |||||||
|             </dependencies> |             </dependencies> | ||||||
|             <configuration> |             <configuration> | ||||||
|               <driver>org.gjt.mm.mysql.Driver</driver> |               <driver>org.gjt.mm.mysql.Driver</driver> | ||||||
|               <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}/cloud</url> |               <url>${db.cloud.driver}://${db.cloud.host}:${db.cloud.port}/cloud</url> | ||||||
|               <username>${db.cloud.username}</username> |               <username>${db.cloud.username}</username> | ||||||
|               <password>${db.cloud.password}</password> |               <password>${db.cloud.password}</password> | ||||||
|               <!--all executions are ignored if -Dmaven.test.skip=true --> |               <!--all executions are ignored if -Dmaven.test.skip=true --> | ||||||
|  | |||||||
| @ -83,7 +83,7 @@ | |||||||
|             </dependencies> |             </dependencies> | ||||||
|             <configuration> |             <configuration> | ||||||
|               <driver>org.gjt.mm.mysql.Driver</driver> |               <driver>org.gjt.mm.mysql.Driver</driver> | ||||||
|               <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}/cloud</url> |               <url>${db.cloud.driver}://${db.cloud.host}:${db.cloud.port}/cloud</url> | ||||||
|               <username>${db.cloud.username}</username> |               <username>${db.cloud.username}</username> | ||||||
|               <password>${db.cloud.password}</password> |               <password>${db.cloud.password}</password> | ||||||
|               <!--all executions are ignored if -Dmaven.test.skip=true --> |               <!--all executions are ignored if -Dmaven.test.skip=true --> | ||||||
|  | |||||||
| @ -83,7 +83,7 @@ | |||||||
|             </dependencies> |             </dependencies> | ||||||
|             <configuration> |             <configuration> | ||||||
|               <driver>org.gjt.mm.mysql.Driver</driver> |               <driver>org.gjt.mm.mysql.Driver</driver> | ||||||
|               <url>jdbc:mysql://${db.cloud.host}:${db.cloud.port}/cloud</url> |               <url>${db.cloud.driver}://${db.cloud.host}:${db.cloud.port}/cloud</url> | ||||||
|               <username>${db.cloud.username}</username> |               <username>${db.cloud.username}</username> | ||||||
|               <password>${db.cloud.password}</password> |               <password>${db.cloud.password}</password> | ||||||
|               <!--all executions are ignored if -Dmaven.test.skip=true --> |               <!--all executions are ignored if -Dmaven.test.skip=true --> | ||||||
|  | |||||||
| @ -19,6 +19,7 @@ | |||||||
| db.usage.username=@DBUSER@ | db.usage.username=@DBUSER@ | ||||||
| db.usage.password=@DBPW@ | db.usage.password=@DBPW@ | ||||||
| db.usage.host=@DBHOST@ | db.usage.host=@DBHOST@ | ||||||
|  | db.usage.driver=@DBDRIVER@ | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
|  | |||||||
| @ -26,6 +26,7 @@ db.cloud.username=cloud | |||||||
| db.cloud.password=cloud | db.cloud.password=cloud | ||||||
| db.root.password= | db.root.password= | ||||||
| db.cloud.host=localhost | db.cloud.host=localhost | ||||||
|  | db.cloud.driver=jdbc:mysql | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -46,6 +47,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi | |||||||
| db.usage.username=cloud | db.usage.username=cloud | ||||||
| db.usage.password=cloud | db.usage.password=cloud | ||||||
| db.usage.host=localhost | db.usage.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.usage.driver=jdbc:mysql | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -59,6 +62,8 @@ db.usage.autoReconnect=true | |||||||
| db.simulator.username=cloud | db.simulator.username=cloud | ||||||
| db.simulator.password=cloud | db.simulator.password=cloud | ||||||
| db.simulator.host=localhost | db.simulator.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.simulator.driver=jdbc:mysql | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
| @ -29,6 +29,7 @@ db.cloud.username=cloud | |||||||
| db.cloud.password=cloud | db.cloud.password=cloud | ||||||
| db.root.password= | db.root.password= | ||||||
| db.cloud.host=localhost | db.cloud.host=localhost | ||||||
|  | db.cloud.driver=jdbc:mysql | ||||||
| db.cloud.port=3306 | db.cloud.port=3306 | ||||||
| db.cloud.name=cloud | db.cloud.name=cloud | ||||||
| 
 | 
 | ||||||
| @ -49,6 +50,8 @@ db.cloud.url.params=prepStmtCacheSize=517&cachePrepStmts=true&prepStmtCacheSqlLi | |||||||
| db.usage.username=cloud | db.usage.username=cloud | ||||||
| db.usage.password=cloud | db.usage.password=cloud | ||||||
| db.usage.host=localhost | db.usage.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.usage.driver=jdbc:mysql | ||||||
| db.usage.port=3306 | db.usage.port=3306 | ||||||
| db.usage.name=cloud_usage | db.usage.name=cloud_usage | ||||||
| 
 | 
 | ||||||
| @ -62,6 +65,8 @@ db.usage.autoReconnect=true | |||||||
| db.simulator.username=cloud | db.simulator.username=cloud | ||||||
| db.simulator.password=cloud | db.simulator.password=cloud | ||||||
| db.simulator.host=localhost | db.simulator.host=localhost | ||||||
|  | # It's not guaranteed that using a different DB provider than the one from the regular cloud DB will work | ||||||
|  | db.simulator.driver=jdbc:mysql | ||||||
| db.simulator.port=3306 | db.simulator.port=3306 | ||||||
| db.simulator.name=simulator | db.simulator.name=simulator | ||||||
| db.simulator.maxActive=250 | db.simulator.maxActive=250 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user