File tree Expand file tree Collapse file tree 15 files changed +229
-288
lines changed Expand file tree Collapse file tree 15 files changed +229
-288
lines changed Original file line number Diff line number Diff line change @@ -4,18 +4,16 @@ plugins {
4
4
5
5
dependencies {
6
6
implementation ' org.springframework.boot:spring-boot-starter'
7
- implementation ' org.springframework.boot:spring-boot-starter-validation'
8
- implementation ' org.springframework.boot:spring-boot-starter-data-jpa'
9
- implementation ' org.springframework.boot:spring-boot-starter-webflux'
10
- implementation ' org.springframework.boot:spring-boot-configuration-processor'
7
+ implementation ' org.springframework.boot:spring-boot-starter-web'
8
+ implementation ' org.springframework.boot:spring-boot-starter-batch'
11
9
implementation ' org.springframework.boot:spring-boot-starter-actuator'
12
10
13
11
implementation(libs. yaci. store. starter)
14
12
implementation(libs. yaci. store. utxo. starter)
15
13
implementation(libs. yaci. store. account. starter)
14
+ implementation(libs. yaci. store. admin. starter)
16
15
17
16
implementation project(' :components:healthcheck' )
18
- implementation project(' :aggregates:account' )
19
17
runtimeOnly ' org.postgresql:postgresql'
20
18
21
19
compileOnly(libs. lombok)
Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ spring:
11
11
out-of-order : true
12
12
datasource :
13
13
hikari :
14
- maximum-pool-size : 30
14
+ maximum-pool-size : 50
15
15
minimum-idle : 5
16
16
jpa :
17
17
properties :
@@ -39,13 +39,17 @@ store:
39
39
history-cleanup-enabled : false
40
40
# 3 months
41
41
balance-cleanup-slot-count : 7889238
42
- address-tx-amount-include-zero-amount : true
43
42
api-enabled : true
44
43
parallel-write : true
45
44
write-thread-default-batch-size : 1000
46
45
jooq-write-batch-size : 3000
47
46
write-thread-count : 5
47
+ save-address-tx-amount : true
48
+ address-tx-amount-include-zero-amount : true
49
+ utxo :
50
+ save-address : true
48
51
address-cache-enabled : true
52
+ address-cache-size : 100000
49
53
executor :
50
54
enable-parallel-processing : true
51
55
block-processing-threads : 15
54
58
blocks-partition-size : 10
55
59
use-virtual-thread-for-batch-processing : false
56
60
use-virtual-thread-for-event-processing : true
61
+ admin :
62
+ api-enabled : true
57
63
58
64
ledger-sync :
59
65
healthcheck :
Original file line number Diff line number Diff line change @@ -22,6 +22,16 @@ store.cardano.protocol-magic=1
22
22
NETWORK =preprod
23
23
24
24
# #################### Postgres DB #######################
25
- spring.datasource.url =jdbc:postgresql://localhost:5432/ledger_sync?currentSchema=cexplorer
25
+ spring.datasource.url =jdbc:postgresql://localhost:5432/ledger_sync?currentSchema=ledger_sync
26
26
spring.datasource.username =postgres
27
27
spring.datasource.password =1
28
+
29
+
30
+ # ################# Aggregation App Specific Properties ###########
31
+ # store.account.initial-balance-snapshot-block=1950000
32
+
33
+ # store.account.balance-calc-job-batch-size=500
34
+ # store.account.balance-calc-job-partition-size=5
35
+
36
+ # store.admin.health-check-interval=60
37
+ # store.admin.auto-recovery-enabled=true
Original file line number Diff line number Diff line change
1
+ version : ' 3.9'
2
+
3
+ services :
4
+ ledger-sync-aggregation :
5
+ image : cardanofoundation/ledger-sync-aggregation:dev
6
+ container_name : ledger-sync-aggregation-${NETWORK:-mainnet}
7
+ # build:
8
+ # context: .
9
+ # dockerfile: Dockerfile
10
+ # target: aggregation
11
+ environment :
12
+ - SPRING_DATASOURCE_URL=${SPRING_DATASOURCE_URL:-jdbc:postgresql://ledger-sync-postgres:5432/ledger_sync?currentSchema=aggregation}
13
+ - SPRING_DATASOURCE_USERNAME=${SPRING_DATASOURCE_USERNAME:-cardano-master}
14
+ - SPRING_DATASOURCE_PASSWORD=${SPRING_DATASOURCE_PASSWORD:-dbpass}
15
+ - STORE_CARDANO_HOST=${STORE_CARDANO_HOST:-relays-new.cardano-mainnet.iohk.io}
16
+ - STORE_CARDANO_PORT=${STORE_CARDANO_PORT:-3001}
17
+ - STORE_CARDANO_PROTOCOLMAGIC=${STORE_CARDANO_PROTOCOLMAGIC:-764824073}
18
+ - NETWORK=${NETWORK:-mainnet}
19
+ - HEALTH_CHECK_ENABLED=${HEALTH_CHECK_ENABLED:-true}
20
+ - EVENT_TIME_THRESHOLD_IN_SECOND=${EVENT_TIME_THRESHOLD_IN_SECOND:-600}
21
+ - BLOCK_TIME_CHECK_ENABLED=${BLOCK_TIME_CHECK_ENABLED:-true}
22
+ - BLOCK_TIME_THRESHOLD_IN_SECOND=${BLOCK_TIME_THRESHOLD_IN_SECOND:-180}
23
+ - STORE_ACCOUNT_INITIALBALANCESNAPSHOTBLOCK=${STORE_ACCOUNT_INITIALBALANCESNAPSHOTBLOCK:-0}
24
+ - STORE_ACCOUNT_BALANCECALCJOBBATCHSIZE=${STORE_ACCOUNT_BALANCECALCJOBBATCHSIZE:-500}
25
+ - STORE_ACCOUNT_BALANCECALCJOBPARTITIONSIZE=${STORE_ACCOUNT_BALANCECALCJOBPARTITIONSIZE:-5}
26
+ - STORE_ADMIN_HEALTHCHECKINTERVAL=${STORE_ADMIN_HEALTHCHECKINTERVAL:-120}
27
+ - STORE_ADMIN_AUTORECOVERYENABLED=${STORE_ADMIN_AUTORECOVERYENABLED:-true}
28
+ ports :
29
+ - ${PORT:-8081}:8080
30
+ volumes :
31
+ - $PWD/logs:/app/logs
32
+
33
+ logging :
34
+ driver : " json-file"
35
+ options :
36
+ max-size : " 1m"
37
+ max-file : " 50"
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ version : ' 3.9'
2
+
3
+ networks :
4
+ ledger-sync-net :
5
+
6
+ services :
7
+ ledger-sync-postgres :
8
+ extends :
9
+ file : postgres-compose.yml
10
+ service : ledger-sync-postgres
11
+ networks :
12
+ - ledger-sync-net
13
+
14
+ ledger-sync :
15
+ extends :
16
+ file : main-app-compose.yml
17
+ service : ledger-sync
18
+ depends_on :
19
+ ledger-sync-postgres :
20
+ condition : service_healthy
21
+ networks :
22
+ - ledger-sync-net
23
+
24
+ ledger-sync-aggregation :
25
+ extends :
26
+ file : aggr-app-compose.yml
27
+ service : ledger-sync-aggregation
28
+ depends_on :
29
+ ledger-sync-postgres :
30
+ condition : service_healthy
31
+ networks :
32
+ - ledger-sync-net
Original file line number Diff line number Diff line change
1
+ version : ' 3.9'
2
+
3
+ networks :
4
+ ledger-sync-net :
5
+
6
+ services :
7
+ ledger-sync-postgres :
8
+ extends :
9
+ file : postgres-compose.yml
10
+ service : ledger-sync-postgres
11
+ networks :
12
+ - ledger-sync-net
13
+
14
+ ledger-sync-aggregation :
15
+ extends :
16
+ file : aggr-app-compose.yml
17
+ service : ledger-sync-aggregation
18
+ depends_on :
19
+ ledger-sync-postgres :
20
+ condition : service_healthy
21
+ networks :
22
+ - ledger-sync-net
Original file line number Diff line number Diff line change
1
+ version : ' 3.9'
2
+
3
+ networks :
4
+ ledger-sync-net :
5
+
6
+ services :
7
+ ledger-sync-postgres :
8
+ extends :
9
+ file : postgres-compose.yml
10
+ service : ledger-sync-postgres
11
+ networks :
12
+ - ledger-sync-net
13
+
14
+ ledger-sync :
15
+ extends :
16
+ file : main-app-compose.yml
17
+ service : ledger-sync
18
+ depends_on :
19
+ ledger-sync-postgres :
20
+ condition : service_healthy
21
+ networks :
22
+ - ledger-sync-net
You can’t perform that action at this time.
0 commit comments