This commit is contained in:
Дмитрий Соловьев
2026-05-25 14:23:52 +03:00
parent b3a6012ebb
commit d48ddd2657
1066 changed files with 104601 additions and 3 deletions
+157
View File
@@ -0,0 +1,157 @@
spring:
lifecycle.timeout-per-shutdown-phase: 40s
jackson:
default-property-inclusion: non_null
boot:
admin:
client:
instance:
service-base-url: ${pcp.services.slots}
service-path: /swagger/ui
management-base-url: ${pcp.services.slots}
health-url: ${pcp.services.slots}/actuator/health
springdoc:
swagger-ui:
enabled: true
layout: BaseLayout
path: /swagger/ui
api-docs:
enabled: true
path: /api-docs
logging:
level:
root: INFO
management:
endpoints:
web:
exposure:
include: "*"
endpoint:
health:
show-details: always
info:
enabled: true
---
spring:
config:
activate:
on-profile: local
kafka:
bootstrap-servers: ${pcp.infra.kafka.host}:${pcp.infra.kafka.port}
consumer:
group-id: pcp
template:
default-topic: pcp.tle
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://${pcp.infra.postgres.host}:${pcp.infra.postgres.port}/pcp_slots
username: postgres
password: password
jpa:
hibernate:
ddl-auto: validate
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
jdbc:
lob:
non_contextual_creation: true
flyway:
enabled: true
baseline-on-migrate: true
locations: classpath:db/migration
codec:
max-in-memory-size: 20MB
settings:
request-service: ${pcp.services.request}
earth-grid-service: ${pcp.services.request}
satellite-catalog-service: ${pcp.services.satellite-catalog}
app:
kafka:
topics:
booked-slots: pcp.slots.status.v1
satellites: pcp.satellites
pcp:
booked-slots:
timeout-check-interval: 1h
timeout-threshold: 1h
slot-service:
calc:
parallelism: 8
chunk-duration-seconds: 86400
flush-threshold: 40000
stream-batch-size: 2000
source-margin-seconds: 120
server:
port: ${pcp.ports.slots:7006}
---
spring:
config:
activate:
on-profile: dev
kafka:
bootstrap-servers: ${pcp.infra.kafka.host}:${pcp.infra.kafka.port}
consumer:
group-id: pcp
template:
default-topic: pcp.tle
datasource:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://${pcp.infra.postgres.host}:${pcp.infra.postgres.port}/pcp_slots
username: postgres
password: password
jpa:
hibernate:
ddl-auto: validate
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
jdbc:
lob:
non_contextual_creation: true
flyway:
enabled: true
baseline-on-migrate: true
locations: classpath:db/migration
codec:
max-in-memory-size: 20MB
settings:
request-service: ${pcp.services.request}
earth-grid-service: ${pcp.services.request}
satellite-catalog-service: ${pcp.services.satellite-catalog}
app:
kafka:
topics:
booked-slots: pcp.slots.status.v1
satellites: pcp.satellites
pcp:
booked-slots:
timeout-check-interval: 1h
timeout-threshold: 1h
slot-service:
calc:
parallelism: 4
chunk-duration-seconds: 86400
flush-threshold: 20000
stream-batch-size: 2000
source-margin-seconds: 120
server:
port: ${pcp.ports.slots:8080}