2021-04-12 20:47:21 +03:00
|
|
|
---
|
|
|
|
|
|
|
|
log_path: '/var/log/nexus-pipe/{{ ENV_TYPE }}'
|
|
|
|
pipe:
|
|
|
|
brokers: |
|
|
|
|
kafka-0.example.net
|
|
|
|
schema:
|
|
|
|
- consumers:
|
|
|
|
- class: nexus.pipe.consumers.CrossReferencesBulkConsumer
|
|
|
|
topics:
|
|
|
|
- name: cross_references
|
|
|
|
workers: 4
|
|
|
|
group_id: pipe
|
|
|
|
processors:
|
|
|
|
- class: nexus.pipe.processors.CrossReferencesProcessor
|
|
|
|
kwargs:
|
|
|
|
brokers: |
|
|
|
|
kafka-0.example.net
|
|
|
|
database:
|
|
|
|
database: nexus
|
|
|
|
host: postgres.example.net
|
|
|
|
password: '{{ DATABASE_PASSWORD }}'
|
|
|
|
username: '{{ DATABASE_USERNAME }}'
|
|
|
|
- consumers:
|
|
|
|
- class: nexus.pipe.consumers.DocumentOperationsJsonConsumer
|
|
|
|
topics:
|
|
|
|
- name: operations
|
|
|
|
workers: 2
|
|
|
|
- class: nexus.pipe.consumers.DocumentOperationsConsumer
|
|
|
|
topics:
|
|
|
|
- name: operations_binary_hp
|
|
|
|
workers: 4
|
|
|
|
- name: operations_binary
|
|
|
|
workers: 14
|
|
|
|
group_id: pipe
|
|
|
|
processors:
|
|
|
|
- class: nexus.pipe.processors.ActionProcessor
|
|
|
|
kwargs:
|
|
|
|
actions:
|
2022-03-28 17:39:36 +03:00
|
|
|
- class: nexus.actions.document_operations_pb.update_document_scimag_pb.FillFromExternalSourceAction
|
2021-04-12 20:47:21 +03:00
|
|
|
kwargs:
|
|
|
|
crossref:
|
|
|
|
rps: 50
|
|
|
|
user_agent: 'ScienceLegion/1.0 (Linux x86_64; ) ScienceLegion/1.0.0'
|
2022-03-28 17:39:36 +03:00
|
|
|
ttl_dns_cache: 120
|
|
|
|
- class: nexus.actions.document_operations_pb.update_document_scimag_pb.CleanAction
|
|
|
|
- class: nexus.actions.document_operations_pb.update_document_scimag_pb.ToPostgresAction
|
2021-04-12 20:47:21 +03:00
|
|
|
kwargs:
|
|
|
|
database:
|
|
|
|
database: nexus
|
|
|
|
host: postgres.example.net
|
|
|
|
password: '{{ DATABASE_PASSWORD }}'
|
|
|
|
username: '{{ DATABASE_USERNAME }}'
|
2022-03-28 17:39:36 +03:00
|
|
|
- class: nexus.actions.document_operations_pb.update_document_scimag_pb.ReferencesToKafkaAction
|
2021-04-12 20:47:21 +03:00
|
|
|
kwargs:
|
|
|
|
brokers: |
|
|
|
|
kafka-0.example.net
|
|
|
|
topic: cross_references
|
|
|
|
filter:
|
|
|
|
class: nexus.pipe.filters.DocumentOperationFilter
|
|
|
|
kwargs:
|
|
|
|
document: scimag
|
|
|
|
operation: update_document
|
|
|
|
- class: nexus.pipe.processors.ActionProcessor
|
|
|
|
kwargs:
|
|
|
|
actions:
|
2022-03-28 17:39:36 +03:00
|
|
|
- class: nexus.actions.document_operations_pb.update_document_scitech_pb.CleanAction
|
|
|
|
- class: nexus.actions.document_operations_pb.update_document_scitech_pb.ToPostgresAction
|
2021-04-12 20:47:21 +03:00
|
|
|
kwargs:
|
|
|
|
database:
|
|
|
|
database: nexus
|
|
|
|
host: postgres.example.net
|
|
|
|
password: '{{ DATABASE_PASSWORD }}'
|
|
|
|
username: '{{ DATABASE_USERNAME }}'
|
|
|
|
filter:
|
|
|
|
class: nexus.pipe.filters.DocumentOperationFilter
|
|
|
|
kwargs:
|
|
|
|
document: scitech
|
|
|
|
operation: update_document
|
2022-03-28 17:39:36 +03:00
|
|
|
- class: nexus.pipe.processors.ActionProcessor
|
|
|
|
kwargs:
|
|
|
|
actions:
|
|
|
|
- class: nexus.actions.document_operations_pb.store_telegram_file_id_pb.ToPostgresAction
|
|
|
|
kwargs:
|
|
|
|
database:
|
|
|
|
database: nexus
|
|
|
|
host: postgres.example.net
|
|
|
|
password: '{{ DATABASE_PASSWORD }}'
|
|
|
|
username: '{{ DATABASE_USERNAME }}'
|
|
|
|
filter:
|
|
|
|
class: nexus.pipe.filters.DocumentOperationFilter
|
|
|
|
kwargs:
|
|
|
|
operation: store_telegram_file_id
|