diff --git a/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/config-master_slave.yaml b/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/config-master_slave.yaml index 678669ddf42b8cd0e5d146f6bd5f797ab5d6f2a3..0faa89cb69d79d2d959ca3247a1a2cb50931575a 100644 --- a/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/config-master_slave.yaml +++ b/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/config-master_slave.yaml @@ -15,7 +15,6 @@ dataSources: url: jdbc:mysql://127.0.0.1:3306/master_ds?serverTimezone=UTC&useSSL=false username: root password: - autoCommit: true connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 @@ -24,7 +23,6 @@ dataSources: url: jdbc:mysql://127.0.0.1:3306/slave_ds_0?serverTimezone=UTC&useSSL=false username: root password: - autoCommit: true connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 diff --git a/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/config-sharding.yaml b/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/config-sharding.yaml index f9b3d1e10068f6afc5b79ca20afcc71ec657a57b..9314ed51807472143cf1b57604d56f84ca7948ee 100644 --- a/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/config-sharding.yaml +++ b/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/config-sharding.yaml @@ -15,7 +15,6 @@ dataSources: url: jdbc:mysql://127.0.0.1:3306/ds_0?serverTimezone=UTC&useSSL=false username: root password: - autoCommit: true connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 @@ -24,7 +23,6 @@ dataSources: url: jdbc:mysql://127.0.0.1:3306/ds_1?serverTimezone=UTC&useSSL=false username: root password: - autoCommit: true connectionTimeoutMilliseconds: 30000 idleTimeoutMilliseconds: 60000 maxLifetimeMilliseconds: 1800000 diff --git a/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/server.yaml b/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/server.yaml index 735c136f9575c74075d3913085bbbc895bb99892..bf5f46c1c80c7edd17ec3831e6734b62e1d24d85 100644 --- a/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/server.yaml +++ b/sharding-proxy-example/sharding-proxy-boot-mybatis-example/src/main/resources/conf/server.yaml @@ -7,9 +7,9 @@ #orchestration: # name: orchestration_ds # overwrite: true -# zookeeper: -# namespace: orchestration +# registry: # serverLists: localhost:2181 +# namespace: orchestration # authentication: username: root @@ -19,6 +19,10 @@ props: max.connections.size.per.query: 1 acceptor.size: 16 # The default value is available processors count * 2. executor.size: 16 # Infinite by default. - proxy.transaction.enabled: true + proxy.frontend.flush.threshold: 128 # The default value is 128. + # LOCAL: Proxy will run with LOCAL transaction. + # XA: Proxy will run with XA transaction. + # BASE: Proxy will run with B.A.S.E transaction. + proxy.transaction.type: LOCAL proxy.opentracing.enabled: false - sql.show: true + sql.show: false