Page Menu
Home
Software Heritage
Search
Configure Global Search
Log In
Files
F7124759
D4560.id16225.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
3 KB
Subscribers
None
D4560.id16225.diff
View Options
diff --git a/data/deployments/staging/common.yaml b/data/deployments/staging/common.yaml
--- a/data/deployments/staging/common.yaml
+++ b/data/deployments/staging/common.yaml
@@ -89,14 +89,29 @@
rocquencourt:
'1': journal0.internal.staging.swh.network
+kafka::broker::heap_opts: "-Xmx3G -Xms3G"
+
kafka::clusters:
- rocquencourt:
+ rocquencourt_staging:
zookeeper::chroot: '/kafka/softwareheritage'
zookeeper::servers:
- journal0.internal.staging.swh.network
brokers:
journal0.internal.staging.swh.network:
id: 1
+ broker::heap_opts: "%{alias('kafka::broker::heap_opts')}"
+ superusers:
+ - User:swh-admin-olasd
+ # Users connecting in the plaintext endpoint are ANONYMOUS
+ # TODO: remove when explicit ACLs are given to producers
+ - User:ANONYMOUS
+ tls: true
+ plaintext_port: 9092
+ public_tls_port: 9093
+ internal_tls_port: 9094
+ cluster_config_overrides:
+ offsets.topic.replication.factor: 1 # this is mandatory with only one node
+ # public_listener_network: 128.93.166.0/26
swh::deploy::journal::brokers:
- journal0.internal.staging.swh.network
@@ -211,14 +226,14 @@
args:
db: "host=%{hiera('swh::deploy::storage::db::host')} port=%{hiera('swh::deploy::storage::db::port')} user=%{hiera('swh::deploy::storage::db::user')} dbname=%{hiera('swh::deploy::storage::db::dbname')} password=%{hiera('swh::deploy::storage::db::password')}"
objstorage: "%{alias('swh::remote_service::objstorage::config')}"
- journal_writer:
- cls: kafka
- args:
- brokers: "%{alias('swh::deploy::journal::brokers')}"
- prefix: "%{alias('swh::deploy::journal::prefix')}"
- client_id: "swh.storage.journal_writer.%{::swh_hostname.short}"
- producer_config:
- message.max.bytes: 1000000000
+ journal_writer:
+ cls: kafka
+ args:
+ brokers: "%{alias('swh::deploy::journal::brokers')}"
+ prefix: "%{alias('swh::deploy::journal::prefix')}"
+ client_id: "swh.storage.journal_writer.%{::swh_hostname.short}"
+ producer_config:
+ message.max.bytes: 1000000000
## Reverse-proxy and frontend
diff --git a/data/deployments/staging/vagrant.yaml b/data/deployments/staging/vagrant.yaml
--- a/data/deployments/staging/vagrant.yaml
+++ b/data/deployments/staging/vagrant.yaml
@@ -1,2 +1,4 @@
---
swh::postgresql::shared_buffers: 128MB
+
+kafka::broker::heap_opts: "-Xmx512m -Xms512m"
diff --git a/site-modules/profile/manifests/kafka/broker.pp b/site-modules/profile/manifests/kafka/broker.pp
--- a/site-modules/profile/manifests/kafka/broker.pp
+++ b/site-modules/profile/manifests/kafka/broker.pp
@@ -84,6 +84,7 @@
target => $ks_location,
password => $ks_password,
trustcacerts => true,
+ require => Class['Java'],
}
$plaintext_port = $kafka_cluster_config['plaintext_port']
diff --git a/site-modules/role/manifests/swh_journal_allinone.pp b/site-modules/role/manifests/swh_journal_allinone.pp
--- a/site-modules/role/manifests/swh_journal_allinone.pp
+++ b/site-modules/role/manifests/swh_journal_allinone.pp
@@ -1,3 +1,4 @@
class role::swh_journal_allinone inherits role::swh_journal_orchestrator {
+ include profile::zookeeper
include profile::kafka::broker
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Dec 21 2024, 6:40 PM (11 w, 4 d ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3232409
Attached To
D4560: Configure the kafka server for staging
Event Timeline
Log In to Comment