ChinaJeckXu opened a new issue, #7511:
URL: https://github.com/apache/incubator-seata/issues/7511

   ### Check Ahead
   
   - [x] I have searched the [issues](https://github.com/seata/seata/issues) of 
this repository and believe that this is not a duplicate.
   
   - [x] I am willing to try to fix this bug myself.
   
   
   ### Ⅰ. Issue Description
   
   
我本地原本使用Nacos作为注册及配置中心,升级2.4.0后,因有观看控制台需求,部署了Seata-Naming-Server,Seata-Server注册到多个注册中心(Nacos、Seata-Naming-Server),其中,Seata-Naming-Server探测心跳的端口为8091、8092、8093,这三个端口是Seata的Service
 端口,并非Seata 的Web Api端口。初步问题定位在此,Seata-Naming-Server探测心跳的端口应该为7091,7092,7093。
   
   ### Ⅱ. Describe what happened
   
   以下是我的Seata-Naming-Server服务端配置及Seata-Server服务端配置
   ```yml
   server:
     port: 8701
   
   spring:
     application:
       name: seata-namingserver
   logging:
     config: classpath:logback-spring.xml
     file:
       path: ${log.home:${user.home}/logs/seata}
   console:
     user:
       username: magical-seata
       password: magical-seata
   heartbeat:
     threshold: 90000
     period: 60000
   seata:
     security:
       secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
       tokenValidityInMilliseconds: 1800000
       csrf-ignore-urls: /naming/v1/**,/api/v1/naming/**
       ignore:
         urls: 
/,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.jpeg,/**/*.ico,/api/v1/auth/login,/version.json,/naming/v1/health,/error
   ```
   ```yml
   server:
     port: 8702
   
   spring:
     application:
       name: seata-namingserver
   logging:
     config: classpath:logback-spring.xml
     file:
       path: ${log.home:${user.home}/logs/seata}
   console:
     user:
       username: magical-seata
       password: magical-seata
   heartbeat:
     threshold: 90000
     period: 60000
   seata:
     security:
       secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
       tokenValidityInMilliseconds: 1800000
       csrf-ignore-urls: /naming/v1/**,/api/v1/naming/**
       ignore:
         urls: 
/,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.jpeg,/**/*.ico,/api/v1/auth/login,/version.json,/naming/v1/health,/error
   ```
   ```yml
   server:
     port: 8703
   
   spring:
     application:
       name: seata-namingserver
   logging:
     config: classpath:logback-spring.xml
     file:
       path: ${log.home:${user.home}/logs/seata}
   console:
     user:
       username: magical-seata
       password: magical-seata
   heartbeat:
     threshold: 90000
     period: 60000
   seata:
     security:
       secretKey: SeataSecretKey0c382ef121d778043159209298fd40bf3850a017
       tokenValidityInMilliseconds: 1800000
       csrf-ignore-urls: /naming/v1/**,/api/v1/naming/**
       ignore:
         urls: 
/,/**/*.css,/**/*.js,/**/*.html,/**/*.map,/**/*.svg,/**/*.png,/**/*.jpeg,/**/*.ico,/api/v1/auth/login,/version.json,/naming/v1/health,/error
   ```
   ```yml
   server:
     port: 7091
   
   spring:
     application:
       name: magical-seata-server
   
   logging:
     config: classpath:logback-spring.xml
     file:
       path: ${user.home}/logs/seata
   
   seata:
     server:
       service-port: 8091 #If not configured, the default is '${server.port} + 
1000'
       max-commit-retry-timeout: -1
       max-rollback-retry-timeout: -1
       rollback-failed-unlock-enable: false
       enable-check-auth: true
       enable-parallel-request-handle: true
       enable-parallel-handle-branch: false
       retry-dead-threshold: 130000
       xaer-nota-retry-timeout: 60000
       enableParallelRequestHandle: true
       applicationDataLimitCheck: true
       applicationDataLimit: 64000
       recovery:
         committing-retry-period: 1000
         async-committing-retry-period: 1000
         rollbacking-retry-period: 1000
         end-status-retry-period: 1000
         timeout-retry-period: 1000
       undo:
         log-save-days: 7
         log-delete-period: 86400000
       session:
         branch-async-queue-size: 5000 #branch async remove queue size
         enable-branch-async-remove: false #enable to asynchronous remove 
branchSession
       ratelimit:
         enable: false
         bucketTokenNumPerSecond: 999999
         bucketTokenMaxNum: 999999
         bucketTokenInitialNum: 999999
     config:
       # support: nacos, consul, apollo, zk, etcd3
       type: nacos
       nacos:
         server-addr: 192.168.0.229:8851
         namespace: d87ceb12-f950-4340-8e54-12fc1ef6df6b
         group: SEATA_DEV_GROUP
         data-id: magical-dev-seata.properties
         username: nacos
         password: xxxxxxx
     registry:
       # support: nacos, eureka, redis, zk, consul, etcd3, sofa
       type: seata,nacos
       nacos:
         application: magical-seata-server
         server-addr: 192.168.0.229:8851
         group: SEATA_DEV_GROUP
         namespace: d87ceb12-f950-4340-8e54-12fc1ef6df6b
         cluster: default
         username: nacos
         password: xxxxxxx
       seata:
         server-addr: 192.168.0.229:8701,192.168.0.229:8702,192.168.0.229:8703
         cluster: default
         namespace: public
         heartbeat-period: 5000
         metadata-max-age-ms: 30000
         username: magical-seata
         password: magical-seata
         tokenValidityInMilliseconds: 1740000
     store:
       # support: file 、 db 、 redis
       mode: redis
       session:
         mode: redis
       lock:
         mode: redis
       redis:
         mode: single
         type: lua
         database: 0
         min-conn: 1
         max-conn: 10
         password: xxxxxxx
         max-total: 100
         query-limit: 100
         single:
           host: 192.168.0.229
           port: 6379
   ```
   ```yml
   server:
     port: 7092
   
   spring:
     application:
       name: magical-seata-server
   
   logging:
     config: classpath:logback-spring.xml
     file:
       path: ${user.home}/logs/seata
   
   console:
     user:
       username: magical-seata
       password: magical-seata
   
   seata:
     server:
       service-port: 8092 #If not configured, the default is '${server.port} + 
1000'
       max-commit-retry-timeout: -1
       max-rollback-retry-timeout: -1
       rollback-failed-unlock-enable: false
       enable-check-auth: true
       enable-parallel-request-handle: true
       enable-parallel-handle-branch: false
       retry-dead-threshold: 130000
       xaer-nota-retry-timeout: 60000
       enableParallelRequestHandle: true
       applicationDataLimitCheck: true
       applicationDataLimit: 64000
       recovery:
         committing-retry-period: 1000
         async-committing-retry-period: 1000
         rollbacking-retry-period: 1000
         end-status-retry-period: 1000
         timeout-retry-period: 1000
       undo:
         log-save-days: 7
         log-delete-period: 86400000
       session:
         branch-async-queue-size: 5000 #branch async remove queue size
         enable-branch-async-remove: false #enable to asynchronous remove 
branchSession
       ratelimit:
         enable: false
         bucketTokenNumPerSecond: 999999
         bucketTokenMaxNum: 999999
         bucketTokenInitialNum: 999999
     config:
       # support: nacos, consul, apollo, zk, etcd3
       type: nacos
       nacos:
         server-addr: 192.168.0.229:8851
         namespace: d87ceb12-f950-4340-8e54-12fc1ef6df6b
         group: SEATA_DEV_GROUP
         data-id: magical-dev-seata.properties
         username: nacos
         password: xxxxxxx
     registry:
       # support: nacos, eureka, redis, zk, consul, etcd3, sofa
       type: seata,nacos
       nacos:
         application: magical-seata-server
         server-addr: 192.168.0.229:8851
         group: SEATA_DEV_GROUP
         namespace: d87ceb12-f950-4340-8e54-12fc1ef6df6b
         cluster: default
         username: nacos
         password: xxxxxxx
       seata:
         server-addr: 192.168.0.229:8701,192.168.0.229:8702,192.168.0.229:8703
         cluster: default
         namespace: public
         heartbeat-period: 5000
         metadata-max-age-ms: 30000
         username: magical-seata
         password: magical-seata
         tokenValidityInMilliseconds: 1740000
     store:
       # support: file 、 db 、 redis
       mode: redis
       session:
         mode: redis
       lock:
         mode: redis
       redis:
         mode: single
         type: lua
         database: 0
         min-conn: 1
         max-conn: 10
         password: xxxxxxxx
         max-total: 100
         query-limit: 100
         single:
           host: 192.168.0.229
           port: 6379
   ```
   ```yml
   server:
     port: 7093
   
   spring:
     application:
       name: magical-seata-server
   
   logging:
     config: classpath:logback-spring.xml
     file:
       path: ${user.home}/logs/seata
   
   console:
     user:
       username: magical-seata
       password: magical-seata
   
   seata:
     server:
       service-port: 8093 #If not configured, the default is '${server.port} + 
1000'
       max-commit-retry-timeout: -1
       max-rollback-retry-timeout: -1
       rollback-failed-unlock-enable: false
       enable-check-auth: true
       enable-parallel-request-handle: true
       enable-parallel-handle-branch: false
       retry-dead-threshold: 130000
       xaer-nota-retry-timeout: 60000
       enableParallelRequestHandle: true
       applicationDataLimitCheck: true
       applicationDataLimit: 64000
       recovery:
         committing-retry-period: 1000
         async-committing-retry-period: 1000
         rollbacking-retry-period: 1000
         end-status-retry-period: 1000
         timeout-retry-period: 1000
       undo:
         log-save-days: 7
         log-delete-period: 86400000
       session:
         branch-async-queue-size: 5000 #branch async remove queue size
         enable-branch-async-remove: false #enable to asynchronous remove 
branchSession
       ratelimit:
         enable: false
         bucketTokenNumPerSecond: 999999
         bucketTokenMaxNum: 999999
         bucketTokenInitialNum: 999999
     config:
       # support: nacos, consul, apollo, zk, etcd3
       type: nacos
       nacos:
         server-addr: 192.168.0.229:8851
         namespace: d87ceb12-f950-4340-8e54-12fc1ef6df6b
         group: SEATA_DEV_GROUP
         data-id: magical-dev-seata.properties
         username: nacos
         password: xxxxxxx
     registry:
       # support: nacos, eureka, redis, zk, consul, etcd3, sofa
       type: seata,nacos
       nacos:
         application: magical-seata-server
         server-addr: 192.168.0.229:8851
         group: SEATA_DEV_GROUP
         namespace: d87ceb12-f950-4340-8e54-12fc1ef6df6b
         cluster: default
         username: nacos
         password: xxxxxxx
       seata:
         server-addr: 192.168.0.229:8701,192.168.0.229:8702,192.168.0.229:8703
         cluster: default
         namespace: public
         heartbeat-period: 5000
         metadata-max-age-ms: 30000
         username: magical-seata
         password: magical-seata
         tokenValidityInMilliseconds: 1740000
     store:
       # support: file 、 db 、 redis
       mode: redis
       session:
         mode: redis
       lock:
         mode: redis
       redis:
         mode: single
         type: lua
         database: 0
         min-conn: 1
         max-conn: 10
         password: xxxxxxx
         max-total: 100
         query-limit: 100
         single:
           host: 192.168.0.229
           port: 6379
   ```
   
   ### Ⅲ. Describe what you expected to happen
   
   _No response_
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   _No response_
   
   ### Ⅴ. Anything else we need to know?
   
   _No response_
   
   ### Ⅵ. Environment
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@seata.apache.org
For additional commands, e-mail: notifications-h...@seata.apache.org

Reply via email to