[root@cccc xxxx]# ./showlog.sh dr
iff-dr-1128668949-lb90g
2017-09-29 03:21:57,575 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                  Logging - STABLE          org.wildfly.swarm:logging:2017.8.1
2017-09-29 03:21:57,612 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                 Logstash - STABLE          org.wildfly.swarm:logstash:2017.8.1
2017-09-29 03:21:57,612 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:          Bean Validation - STABLE          org.wildfly.swarm:bean-validation:2017.8.1
2017-09-29 03:21:57,612 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:        CDI Configuration - STABLE          org.wildfly.swarm:cdi-config:2017.8.1
2017-09-29 03:21:57,612 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:             Transactions - STABLE          org.wildfly.swarm:transactions:2017.8.1
2017-09-29 03:21:57,613 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                      CDI - STABLE          org.wildfly.swarm:cdi:2017.8.1
2017-09-29 03:21:57,613 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                   JAX-RS - STABLE          org.wildfly.swarm:jaxrs:2017.8.1
2017-09-29 03:21:57,614 WARN  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction: CDI JAX-RS API Enhancements - EXPERIMENTAL    org.wildfly.swarm:cdi-jaxrsapi:2017.8.1
2017-09-29 03:21:57,615 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:      Hibernate Validator - STABLE          org.wildfly.swarm:hibernate-validator:2017.8.1
2017-09-29 03:21:57,615 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:   JAX-RS with Validation - STABLE          org.wildfly.swarm:jaxrs-validator:2017.8.1
2017-09-29 03:21:57,615 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                      JCA - STABLE          org.wildfly.swarm:jca:2017.8.1
2017-09-29 03:21:57,615 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:              Datasources - STABLE          org.wildfly.swarm:datasources:2017.8.1
2017-09-29 03:21:57,615 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                      JPA - STABLE          org.wildfly.swarm:jpa:2017.8.1
2017-09-29 03:21:57,616 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                      EJB - STABLE          org.wildfly.swarm:ejb:2017.8.1
2017-09-29 03:21:57,616 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                 Undertow - STABLE          org.wildfly.swarm:undertow:2017.8.1
2017-09-29 03:21:57,616 INFO  [org.wildfly.swarm] (main) WFSWARM0013: Installed fraction:                 Keycloak - STABLE          org.wildfly.swarm:keycloak:2017.8.1
2017-09-29 03:22:01,000 INFO  [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for h2
2017-09-29 03:22:01,060 INFO  [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for mysql
2017-09-29 03:22:01,065 INFO  [org.wildfly.swarm.datasources] (main) WFSWARM1003: Auto-detected JDBC driver for postgresql
2017-09-29 03:22:02,411 INFO  [org.jboss.msc] (main) JBoss MSC version 1.2.6.Final
2017-09-29 03:22:02,595 INFO  [org.jboss.as] (MSC service thread 1-8) WFLYSRV0049: WildFly Swarm 2017.8.1 (WildFly Core 2.2.1.Final) starting
2017-09-29 03:22:02,694 INFO  [org.wildfly.swarm] (MSC service thread 1-8) WFSWARM0019: Install MSC service for command line args: []
2017-09-29 03:22:03,979 WARN  [org.jboss.as.txn] (ServerService Thread Pool -- 20) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique.
2017-09-29 03:22:03,995 INFO  [org.jboss.as.security] (ServerService Thread Pool -- 21) WFLYSEC0002: Activating Security Subsystem
2017-09-29 03:22:04,001 INFO  [org.jboss.as.naming] (ServerService Thread Pool -- 26) WFLYNAM0001: Activating Naming Subsystem
2017-09-29 03:22:04,031 INFO  [org.jboss.as.naming] (MSC service thread 1-7) WFLYNAM0003: Starting Naming Service
2017-09-29 03:22:04,065 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-5) WFLYUT0003: Undertow 1.4.11.Final starting
2017-09-29 03:22:04,067 INFO  [org.jboss.as.security] (MSC service thread 1-6) WFLYSEC0001: Current PicketBox version=4.9.6.Final
2017-09-29 03:22:04,071 INFO  [org.wildfly.extension.io] (ServerService Thread Pool -- 25) WFLYIO001: Worker 'default' has auto-configured to 16 core threads with 128 task threads based on your 8 available processors
2017-09-29 03:22:04,116 INFO  [org.jboss.as.connector] (MSC service thread 1-1) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.4.Final)
2017-09-29 03:22:04,127 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 19) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
2017-09-29 03:22:04,157 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-5) WFLYJCA0018: Started Driver service with driver-name = com.mysql
2017-09-29 03:22:04,177 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 19) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
2017-09-29 03:22:04,188 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 19) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
2017-09-29 03:22:04,193 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0018: Started Driver service with driver-name = h2
2017-09-29 03:22:04,204 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0018: Started Driver service with driver-name = mysql
2017-09-29 03:22:04,219 INFO  [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 19) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.4)
2017-09-29 03:22:04,222 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-8) WFLYJCA0018: Started Driver service with driver-name = postgresql
2017-09-29 03:22:04,234 INFO  [org.xnio] (MSC service thread 1-8) XNIO version 3.4.3.Final
2017-09-29 03:22:04,266 INFO  [org.xnio.nio] (MSC service thread 1-8) XNIO NIO Implementation Version 3.4.3.Final
2017-09-29 03:22:04,378 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0012: Started server default-server.
2017-09-29 03:22:04,539 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0006: Undertow HTTP listener default listening on 0.0.0.0:8080
2017-09-29 03:22:04,709 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-7) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS]
2017-09-29 03:22:04,831 INFO  [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Swarm 2017.8.1 (WildFly Core 2.2.1.Final) started in 2556ms - Started 144 of 157 services (28 services are lazy, passive or on-demand)
2017-09-29 03:22:07,494 INFO  [org.wildfly.swarm.runtime.deployer] (main) deploying delayreq.war
2017-09-29 03:22:07,527 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0027: Starting deployment of "delayreq.war" (runtime-name: "delayreq.war")
2017-09-29 03:22:09,708 INFO  [org.jboss.as.jpa] (MSC service thread 1-3) WFLYJPA0002: Read persistence.xml for DrPU
2017-09-29 03:22:10,244 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.delayreq.war" is using a private module ("org.jboss.ironjacamar.jdbcadapters:main") which may be changed or removed in future versions without notice.
2017-09-29 03:22:10,245 WARN  [org.jboss.as.dependency.private] (MSC service thread 1-3) WFLYSRV0018: Deployment "deployment.delayreq.war" is using a private module ("org.jboss.jts:main") which may be changed or removed in future versions without notice.
2017-09-29 03:22:10,356 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 6) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'delayreq.war#DrPU'
2017-09-29 03:22:10,400 INFO  [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 6) HHH000204: Processing PersistenceUnitInfo [
        name: DrPU
        ...]
2017-09-29 03:22:10,402 INFO  [org.jboss.weld.deployer] (MSC service thread 1-1) WFLYWELD0003: Processing weld deployment delayreq.war
2017-09-29 03:22:10,494 INFO  [org.hibernate.validator.internal.util.Version] (MSC service thread 1-1) HV000001: Hibernate Validator 5.2.4.Final
2017-09-29 03:22:10,497 INFO  [org.hibernate.Version] (ServerService Thread Pool -- 6) HHH000412: Hibernate Core {5.0.10.Final}
2017-09-29 03:22:10,498 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 6) HHH000206: hibernate.properties not found
2017-09-29 03:22:10,500 INFO  [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 6) HHH000021: Bytecode provider name : javassist
2017-09-29 03:22:10,564 INFO  [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 6) HCANN000001: Hibernate Commons Annotations {5.0.1.Final}
2017-09-29 03:22:10,570 INFO  [org.hibernate.validator.internal.xml.ValidationXmlParser] (MSC service thread 1-1) HV000007: META-INF/validation.xml found. Parsing XML based configuration.
2017-09-29 03:22:10,969 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.jdbc.Driver (version 5.1)
2017-09-29 03:22:10,970 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0005: Deploying non-JDBC-compliant driver class com.mysql.fabric.jdbc.FabricMySQLDriver (version 5.1)
2017-09-29 03:22:10,971 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.4)
2017-09-29 03:22:10,973 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-1) WFLYJCA0005: Deploying non-JDBC-compliant driver class org.postgresql.Driver (version 9.4)
2017-09-29 03:22:11,003 INFO  [org.jboss.weld.Version] (MSC service thread 1-1) WELD-000900: 2.3.5 (Final)
2017-09-29 03:22:11,070 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0018: Host default-host starting
2017-09-29 03:22:11,081 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) WFLYJCA0018: Started Driver service with driver-name = delayreq.war_org.postgresql.Driver_9_4
2017-09-29 03:22:11,081 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) WFLYJCA0018: Started Driver service with driver-name = delayreq.war_com.mysql.jdbc.Driver_5_1
2017-09-29 03:22:11,084 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = delayreq.war_org.h2.Driver_1_4
2017-09-29 03:22:11,085 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-3) WFLYJCA0018: Started Driver service with driver-name = delayreq.war_com.mysql.fabric.jdbc.FabricMySQLDriver_5_1
2017-09-29 03:22:11,266 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 6) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'delayreq.war#DrPU'
2017-09-29 03:22:11,628 WARN  [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (ServerService Thread Pool -- 6) IJ000604: Throwable while attempting to get a new connection: null: javax.resource.ResourceException: IJ031084: Unable to create connection
        at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:345)
        at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:352)
        at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:287)
        at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1320)
        at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.getConnection(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:496)
        at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getSimpleConnection(AbstractPool.java:617)
        at org.jboss.jca.core.connectionmanager.pool.AbstractPool.getConnection(AbstractPool.java:589)
        at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.getManagedConnection(AbstractConnectionManager.java:590)
        at org.jboss.jca.core.connectionmanager.tx.TxConnectionManagerImpl.getManagedConnection(TxConnectionManagerImpl.java:429)
        at org.jboss.jca.core.connectionmanager.AbstractConnectionManager.allocateConnection(AbstractConnectionManager.java:747)
        at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:138)
        at org.jboss.as.connector.subsystems.datasources.WildFlyDataSource.getConnection(WildFlyDataSource.java:66)
        at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)
        at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator$ConnectionProviderJdbcConnectionAccess.obtainConnection(JdbcEnvironmentInitiator.java:180)
        at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:68)
        at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
        at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:254)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:228)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207)
        at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
        at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207)
        at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
        at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:847)
        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874)
        at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:161)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:121)
        at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:193)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
        at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:989)
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:341)
        at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2203)
        at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2236)
        at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2035)
        at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:790)
        at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
        at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:400)
        at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:330)
        at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:321)
        ... 36 more
Caused by: java.net.UnknownHostException: dev.mysql.mayocase.com: Name does not resolve
        at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
        at java.net.InetAddress.getAllByName0(InetAddress.java:1276)
        at java.net.InetAddress.getAllByName(InetAddress.java:1192)
        at java.net.InetAddress.getAllByName(InetAddress.java:1126)
        at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:188)
        at com.mysql.jdbc.MysqlIO.<init>(MysqlIO.java:300)
        ... 49 more

2017-09-29 03:22:11,630 WARN  [org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator] (ServerService Thread Pool -- 6) HHH000342: Could not obtain connection to query metadata : javax.resource.ResourceException: IJ000453: Unable to get managed connection for java:jboss/datasources/ExampleDS
2017-09-29 03:22:11,632 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 6) MSC000001: Failed to start service jboss.persistenceunit."delayreq.war#DrPU": org.jboss.msc.service.StartException in service jboss.persistenceunit."delayreq.war#DrPU": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:179)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:121)
        at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:667)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1.run(PersistenceUnitServiceImpl.java:193)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)
        at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:264)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:228)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207)
        at org.hibernate.engine.jdbc.internal.JdbcServicesImpl.configure(JdbcServicesImpl.java:51)
        at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.configureService(StandardServiceRegistryImpl.java:94)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:207)
        at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.handleTypes(MetadataBuildingProcess.java:352)
        at org.hibernate.boot.model.process.spi.MetadataBuildingProcess.complete(MetadataBuildingProcess.java:111)
        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.metadata(EntityManagerFactoryBuilderImpl.java:847)
        at org.hibernate.jpa.boot.internal.EntityManagerFactoryBuilderImpl.build(EntityManagerFactoryBuilderImpl.java:874)
        at org.jboss.as.jpa.hibernate5.TwoPhaseBootstrapImpl.build(TwoPhaseBootstrapImpl.java:44)
        at org.jboss.as.jpa.service.PersistenceUnitServiceImpl$1$1.run(PersistenceUnitServiceImpl.java:161)
        ... 7 more
Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set
        at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.determineDialect(DialectFactoryImpl.java:100)
        at org.hibernate.engine.jdbc.dialect.internal.DialectFactoryImpl.buildDialect(DialectFactoryImpl.java:54)
        at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:137)
        at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
        at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:88)
        at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:254)
        ... 19 more

2017-09-29 03:22:11,695 ERROR [org.jboss.as.controller.management-operation] (main) WFLYCTL0013: Operation ("add") failed - address: (("deployment" => "delayreq.war")) - failure description: {
    "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
    Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
    Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},
    "WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
2017-09-29 03:22:11,697 ERROR [org.jboss.as.server] (main) WFLYSRV0021: Deploy of deployment "delayreq.war" was rolled back with the following failure message: 
{
    "WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
    Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
    Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},
    "WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],
    "WFLYCTL0180: Services with missing/unavailable dependencies" => undefined
}
2017-09-29 03:22:11,704 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = delayreq.war_org.postgresql.Driver_9_4
2017-09-29 03:22:11,705 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = delayreq.war_com.mysql.jdbc.Driver_5_1
2017-09-29 03:22:11,705 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = delayreq.war_org.h2.Driver_1_4
2017-09-29 03:22:11,705 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = delayreq.war_com.mysql.fabric.jdbc.FabricMySQLDriver_5_1
2017-09-29 03:22:11,767 INFO  [org.jboss.as.jpa] (ServerService Thread Pool -- 6) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'delayreq.war#DrPU'
2017-09-29 03:22:11,781 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-6) WFLYUT0019: Host default-host stopping
2017-09-29 03:22:12,102 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-5) WFLYSRV0028: Stopped deployment delayreq.war (runtime-name: delayreq.war) in 405ms
2017-09-29 03:22:12,104 INFO  [org.jboss.as.controller] (main) WFLYCTL0183: Service status report
WFLYCTL0184:    New missing/unsatisfied dependencies:
      service jboss.deployment.unit."delayreq.war".WeldBootstrapService (missing) dependents: [service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator, service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator, service jboss.deployment.unit."delayreq.war".WeldStartService, service jboss.deployment.unit."delayreq.war".CdiValidatorFactoryService, WFLYCTL0208: ... and 2 more ] 
      service jboss.deployment.unit."delayreq.war".WeldStartService (missing) dependents: [service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator, service jboss.undertow.deployment.default-server.default-host./dr/rest, service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator, service jboss.deployment.unit."delayreq.war".CdiValidatorFactoryService, WFLYCTL0208: ... and 3 more ] 
      service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".CREATE (missing) dependents: [service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START] 
      service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./dr/rest, service jboss.deployment.unit."delayreq.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./dr/rest.UndertowDeploymentInfoService] 
      service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START] 
      service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./dr/rest, service jboss.deployment.unit."delayreq.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./dr/rest.UndertowDeploymentInfoService] 
      service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldInitialListener".CREATE (missing) dependents: [service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldInitialListener".START] 
      service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldInitialListener".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./dr/rest, service jboss.deployment.unit."delayreq.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./dr/rest.UndertowDeploymentInfoService] 
      service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldInitialListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldInitialListener".START] 
      service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldTerminalListener".CREATE (missing) dependents: [service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldTerminalListener".START] 
      service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldTerminalListener".START (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./dr/rest, service jboss.deployment.unit."delayreq.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./dr/rest.UndertowDeploymentInfoService] 
      service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldTerminalListener".WeldInstantiator (missing) dependents: [service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldTerminalListener".START] 
      service jboss.deployment.unit."delayreq.war".ee.ComponentRegistry (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./dr/rest.UndertowDeploymentInfoService] 
      service jboss.deployment.unit."delayreq.war".jndiDependencyService (missing) dependents: [service jboss.deployment.unit."delayreq.war".WeldStartService, service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START, service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldTerminalListener".START, service jboss.deployment.unit."delayreq.war".component."org.jboss.weld.servlet.WeldInitialListener".START] 
      service jboss.persistenceunit."delayreq.war#DrPU" (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./dr/rest, service jboss.deployment.unit."delayreq.war".deploymentCompleteService, service jboss.deployment.unit."delayreq.war".WeldStartService, service jboss.deployment.unit."delayreq.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START, WFLYCTL0208: ... and 3 more ] 
      service jboss.undertow.deployment.default-server.default-host./dr/rest (missing) dependents: [service jboss.deployment.unit."delayreq.war".deploymentCompleteService] 
      service jboss.undertow.deployment.default-server.default-host./dr/rest.UndertowDeploymentInfoService (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./dr/rest] 
      service jboss.undertow.deployment.default-server.default-host./dr/rest.codec (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./dr/rest.UndertowDeploymentInfoService] 
      service jboss.undertow.deployment.default-server.default-host./dr/rest.session (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./dr/rest.UndertowDeploymentInfoService] 
      service org.wildfly.request-controller.control-point."delayreq.war".undertow (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./dr/rest.UndertowDeploymentInfoService] 
WFLYCTL0186:   Services which failed to start:      service jboss.persistenceunit."delayreq.war#DrPU"

2017-09-29 03:22:12,108 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0019: Stopped Driver service with driver-name = mysql
2017-09-29 03:22:12,109 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-6) WFLYJCA0019: Stopped Driver service with driver-name = h2
2017-09-29 03:22:12,115 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0019: Stopped Driver service with driver-name = postgresql
2017-09-29 03:22:12,118 INFO  [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS]
2017-09-29 03:22:12,194 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0008: Undertow HTTP listener default suspending
2017-09-29 03:22:12,196 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 0.0.0.0:8080
2017-09-29 03:22:12,204 INFO  [org.wildfly.extension.undertow] (MSC service thread 1-8) WFLYUT0004: Undertow 1.4.11.Final stopping
2017-09-29 03:22:12,215 INFO  [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-7) WFLYJCA0019: Stopped Driver service with driver-name = com.mysql
2017-09-29 03:22:12,233 INFO  [org.jboss.as] (MSC service thread 1-7) WFLYSRV0050: WildFly Swarm 2017.8.1 (WildFly Core 2.2.1.Final) stopped in 123ms
2017-09-29 03:22:12,249 INFO  [org.jboss.weld.Bootstrap] (main) WELD-ENV-002001: Weld SE container internal shut down
2017-09-29 03:22:12,250 ERROR [stderr] (main) java.lang.reflect.InvocationTargetException
2017-09-29 03:22:12,250 ERROR [stderr] (main)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-09-29 03:22:12,250 ERROR [stderr] (main)   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-09-29 03:22:12,250 ERROR [stderr] (main)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-09-29 03:22:12,250 ERROR [stderr] (main)   at java.lang.reflect.Method.invoke(Method.java:498)
2017-09-29 03:22:12,250 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
2017-09-29 03:22:12,252 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.Main.run(Main.java:133)
2017-09-29 03:22:12,252 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.Main.main(Main.java:86)
2017-09-29 03:22:12,252 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2017-09-29 03:22:12,252 ERROR [stderr] (main)     Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2017-09-29 03:22:12,252 ERROR [stderr] (main)     Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
2017-09-29 03:22:12,252 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
2017-09-29 03:22:12,252 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
2017-09-29 03:22:12,252 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:107)
2017-09-29 03:22:12,253 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
2017-09-29 03:22:12,253 ERROR [stderr] (main)   at org.wildfly.swarm.Swarm.deploy(Swarm.java:447)
2017-09-29 03:22:12,253 ERROR [stderr] (main)   at org.wildfly.swarm.Swarm.main(Swarm.java:630)
2017-09-29 03:22:12,253 ERROR [stderr] (main)   ... 7 more
2017-09-29 03:22:12,253 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2017-09-29 03:22:12,253 ERROR [stderr] (main)     Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2017-09-29 03:22:12,253 ERROR [stderr] (main)     Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
2017-09-29 03:22:12,253 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:296)
2017-09-29 03:22:12,253 ERROR [stderr] (main)   ... 12 more
2017-09-29 03:22:12,253 ERROR [stderr] (main) Exception in thread "main" java.lang.reflect.InvocationTargetException
2017-09-29 03:22:12,254 ERROR [stderr] (main)   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
2017-09-29 03:22:12,254 ERROR [stderr] (main)   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
2017-09-29 03:22:12,254 ERROR [stderr] (main)   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
2017-09-29 03:22:12,254 ERROR [stderr] (main)   at java.lang.reflect.Method.invoke(Method.java:498)
2017-09-29 03:22:12,254 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.MainInvoker.invoke(MainInvoker.java:39)
2017-09-29 03:22:12,254 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.Main.run(Main.java:133)
2017-09-29 03:22:12,254 ERROR [stderr] (main)   at org.wildfly.swarm.bootstrap.Main.main(Main.java:86)
2017-09-29 03:22:12,254 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2017-09-29 03:22:12,254 ERROR [stderr] (main)     Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2017-09-29 03:22:12,254 ERROR [stderr] (main)     Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
2017-09-29 03:22:12,255 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:301)
2017-09-29 03:22:12,255 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:174)
2017-09-29 03:22:12,255 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:107)
2017-09-29 03:22:12,255 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer$Proxy$_$$_WeldClientProxy.deploy(Unknown Source)
2017-09-29 03:22:12,255 ERROR [stderr] (main)   at org.wildfly.swarm.Swarm.deploy(Swarm.java:447)
2017-09-29 03:22:12,255 ERROR [stderr] (main)   at org.wildfly.swarm.Swarm.main(Swarm.java:630)
2017-09-29 03:22:12,255 ERROR [stderr] (main)   ... 7 more
2017-09-29 03:22:12,256 ERROR [stderr] (main) Caused by: org.wildfly.swarm.container.DeploymentException: WFSWARM0004: Deployment failed: {"WFLYCTL0080: Failed services" => {"jboss.persistenceunit.\"delayreq.war#DrPU\"" => "org.jboss.msc.service.StartException in service jboss.persistenceunit.\"delayreq.war#DrPU\": org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2017-09-29 03:22:12,256 ERROR [stderr] (main)     Caused by: org.hibernate.service.spi.ServiceException: Unable to create requested service [org.hibernate.engine.jdbc.env.spi.JdbcEnvironment]
2017-09-29 03:22:12,256 ERROR [stderr] (main)     Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set"},"WFLYCTL0412: Required services that are not installed:" => ["jboss.persistenceunit.\"delayreq.war#DrPU\""],"WFLYCTL0180: Services with missing/unavailable dependencies" => undefined}
2017-09-29 03:22:12,256 ERROR [stderr] (main)   at org.wildfly.swarm.container.runtime.RuntimeDeployer.deploy(RuntimeDeployer.java:296)
2017-09-29 03:22:12,256 ERROR [stderr] (main)   ... 12 more

k8s的POD出现上面这个报错时,

可能是因为重启POD后,原本的POD与数据库之间的连接,虽然断了,但数据库却以为还没有断开。

连接可能还保存在数据库中,

解决方法:

mysql> show  variables like "%timeout%";
+-----------------------------+----------+
| Variable_name               | Value    |
+-----------------------------+----------+
| connect_timeout             | 10       |
| delayed_insert_timeout      | 300      |
| have_statement_timeout      | YES      |
| innodb_flush_log_at_timeout | 1        |
| innodb_lock_wait_timeout    | 50       |
| innodb_rollback_on_timeout  | OFF      |
| interactive_timeout         | 28800    |
| lock_wait_timeout           | 31536000 |
| net_read_timeout            | 30       |
| net_write_timeout           | 60       |
| rpl_stop_slave_timeout      | 31536000 |
| slave_net_timeout           | 60       |
| wait_timeout                | 28800    |
+-----------------------------+----------+
13 rows in set (0.00 sec)


mysql> set interactive_timeout =200;
Query OK, 0 rows affected (0.00 sec)  

....修改数据库的断开时间,然后重启k8s中的POD,如果POD没有报错了,记得把这个

interactive_timeout再改成28800  (8小时) 或者你觉得合适的值 

 

Logo

K8S/Kubernetes社区为您提供最前沿的新闻资讯和知识内容

更多推荐