file.conf 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. # Copyright 1999-2019 Seata.io Group.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. #reduce delay for test
  15. ## transaction log store, only used in seata-server
  16. store {
  17. ## store mode: file、db
  18. mode = "file"
  19. ## file store property
  20. file {
  21. ## store location dir
  22. dir = "sessionStore"
  23. }
  24. ## database store property
  25. db {
  26. ## the implement of javax.sql.DataSource, such as DruidDataSource(druid)/BasicDataSource(dbcp) etc.
  27. datasource = "dbcp"
  28. ## mysql/oracle/h2/oceanbase etc.
  29. dbType = "mysql"
  30. driverClassName = "com.mysql.jdbc.Driver"
  31. ## if using mysql to store the data, recommend add rewriteBatchedStatements=true in jdbc connection param
  32. url = "jdbc:mysql://127.0.0.1:3306/seata?rewriteBatchedStatements=true"
  33. user = "mysql"
  34. password = "mysql"
  35. }
  36. }
  37. server {
  38. recovery {
  39. #schedule committing retry period in milliseconds
  40. committingRetryPeriod = 100
  41. #schedule asyn committing retry period in milliseconds
  42. asynCommittingRetryPeriod = 100
  43. #schedule rollbacking retry period in milliseconds
  44. rollbackingRetryPeriod = 100
  45. #schedule timeout retry period in milliseconds
  46. timeoutRetryPeriod = 100
  47. }
  48. }
  49. ## metrics settings
  50. metrics {
  51. enabled = true
  52. registryType = "compact"
  53. # multi exporters use comma divided
  54. exporterList = "prometheus"
  55. exporterPrometheusPort = 9898
  56. }