|
| 1 | +# SPDX-License-Identifier: Apache-2.0 |
| 2 | + |
| 3 | +hiero: |
| 4 | + mirror: |
| 5 | + importer: |
| 6 | + db: |
| 7 | + connectionInitSql: set timezone TO 'UTC'; |
| 8 | + host: 127.0.0.1 |
| 9 | + loadBalance: true |
| 10 | + name: mirror_node |
| 11 | + owner: mirror_node |
| 12 | + ownerPassword: mirror_node_pass |
| 13 | + password: mirror_importer_pass |
| 14 | + port: 5432 |
| 15 | + restPassword: mirror_api_pass |
| 16 | + restUsername: mirror_api |
| 17 | + schema: public |
| 18 | + sslMode: disable |
| 19 | + tempSchema: temporary |
| 20 | + username: mirror_importer |
| 21 | + migration: |
| 22 | + backfillTransactionHashMigration: |
| 23 | + checksum: 2 |
| 24 | + blockNumberMigration: |
| 25 | + checksum: 4 |
| 26 | + errataMigration: |
| 27 | + checksum: 6 |
| 28 | + fixFungibleTokenTotalSupplyMigration: |
| 29 | + checksum: 2 |
| 30 | + historicalAccountInfoMigration: |
| 31 | + checksum: 3 |
| 32 | + initializeEntityBalanceMigration: |
| 33 | + checksum: 4 |
| 34 | + syntheticTokenAllowanceOwnerMigration: |
| 35 | + checksum: 2 |
| 36 | + tokenAccountBalanceMigration: |
| 37 | + checksum: 3 |
| 38 | + parser: |
| 39 | + record: |
| 40 | + entity: |
| 41 | + persist: |
| 42 | + syntheticContractLogEvmAddressLookup: true |
| 43 | +logging: |
| 44 | + level: |
| 45 | + root: warn |
| 46 | + org.hiero.mirror: info |
| 47 | + org.flywaydb.core.internal.command.DbMigrate: info |
| 48 | + org.flywaydb.core.internal.scanner.classpath.ClassPathScanner: error |
| 49 | + #org.hibernate.type.descriptor.sql.BasicBinder: trace |
| 50 | + pattern: |
| 51 | + console: "%clr(%date{${LOG_DATEFORMAT_PATTERN:yyyy-MM-dd'T'HH:mm:ss.SSS}, UTC}Z){faint} %clr(${LOG_LEVEL_PATTERN:%5level}) %clr(%thread){magenta} %clr(%logger{20}){cyan} %m %exception%n" |
| 52 | +management: |
| 53 | + endpoint: |
| 54 | + health: |
| 55 | + group: |
| 56 | + liveness: |
| 57 | + include: ping |
| 58 | + readiness: |
| 59 | + include: db, ping, redis |
| 60 | + startup: |
| 61 | + include: migration |
| 62 | + endpoints: |
| 63 | + web: |
| 64 | + exposure: |
| 65 | + include: health, info, prometheus |
| 66 | + metrics: |
| 67 | + tags: |
| 68 | + application: ${spring.application.name} |
| 69 | + prometheus: |
| 70 | + metrics: |
| 71 | + export: |
| 72 | + step: 60s |
| 73 | +server: |
| 74 | + shutdown: graceful |
| 75 | +spring: |
| 76 | + aot: |
| 77 | + enabled: true |
| 78 | + application: |
| 79 | + name: importer |
| 80 | + datasource: |
| 81 | + name: ${hiero.mirror.importer.db.name} |
| 82 | + password: ${hiero.mirror.importer.db.password} |
| 83 | + url: jdbc:postgresql://${hiero.mirror.importer.db.host}:${hiero.mirror.importer.db.port}/${hiero.mirror.importer.db.name}?tcpKeepAlive=true |
| 84 | + username: ${hiero.mirror.importer.db.username} |
| 85 | + hikari: |
| 86 | + connection-init-sql: ${hiero.mirror.importer.db.connectionInitSql} |
| 87 | + data-source-properties: |
| 88 | + #loggerLevel: TRACE |
| 89 | + logUnclosedConnections: true |
| 90 | + reWriteBatchedInserts: true |
| 91 | + sslmode: ${hiero.mirror.importer.db.sslMode} |
| 92 | + maximumPoolSize: 20 |
| 93 | + flyway: |
| 94 | + baselineOnMigrate: true |
| 95 | + baselineVersion: 0 |
| 96 | + connectRetries: 20 |
| 97 | + ignoreMigrationPatterns: ["*:missing", "*:ignored"] |
| 98 | + locations: "classpath:db/migration/common, classpath:db/migration/v1" |
| 99 | + placeholders: |
| 100 | + api-password: ${hiero.mirror.importer.db.restPassword} |
| 101 | + api-user: ${hiero.mirror.importer.db.restUsername} |
| 102 | + db-name: ${hiero.mirror.importer.db.name} |
| 103 | + db-user: ${hiero.mirror.importer.db.username} |
| 104 | + hashShardCount: 6 # Higher shard count here causes a performance issue due to the nature of how hash indexes work |
| 105 | + partitionStartDate: "'2019-09-01'" |
| 106 | + partitionTimeInterval: "'1 month'" |
| 107 | + schema: ${hiero.mirror.importer.db.schema} |
| 108 | + shardCount: 16 |
| 109 | + tempSchema: ${hiero.mirror.importer.db.tempSchema} |
| 110 | + transactionHashLookbackInterval: "'60 days'" |
| 111 | + target: latest |
| 112 | + lifecycle: |
| 113 | + timeout-per-shutdown-phase: 20s |
| 114 | + main: |
| 115 | + allow-circular-references: true # flywayInitializer -> java migrations -> jdbcTemplate -> flywayInitializer |
| 116 | + task: |
| 117 | + scheduling: |
| 118 | + pool: |
| 119 | + size: 6 |
| 120 | + |
| 121 | +--- |
| 122 | +hiero: |
| 123 | + mirror: |
| 124 | + importer: |
| 125 | + block: |
| 126 | + enabled: true |
| 127 | + sourceType: BLOCK_NODE |
| 128 | + downloader: |
| 129 | + record: |
| 130 | + enabled: false |
| 131 | +spring: |
| 132 | + config: |
| 133 | + activate: |
| 134 | + on-profile: blocknode |
| 135 | + |
| 136 | +--- |
| 137 | +spring: |
| 138 | + config: |
| 139 | + activate: |
| 140 | + on-profile: v2 |
| 141 | + flyway: |
| 142 | + baselineVersion: 1.999.999 |
| 143 | + locations: "classpath:db/migration/common, classpath:db/migration/v2" |
0 commit comments