-
Notifications
You must be signed in to change notification settings - Fork 3.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support running function worker along with broker (#1329)
* Move pulsar functions dependency version to root pom and remove duplicated license headers This addresses some comments in pulsar functions PR #1314 * shade worker * Fix broken master * Upgrade the bookkeeper storage client dependency to the official bookkeeper version This removes the temp dependency in `pulsar-functions-instance` * set `protobuf2.version` in pulsar-common * provide a shaded worker * include worker dependency at broker * Embeded function worker at broker * rename 'function worker' to 'functions worker' * add "--no-functions-worker" for pulsar-client-cpp tests
- Loading branch information
Showing
41 changed files
with
1,633 additions
and
634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# | ||
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
# | ||
|
||
workerId: standalone | ||
workerHostname: localhost | ||
workerPort: 6750 | ||
functionMetadataTopicName: metadata | ||
functionMetadataSnapshotsTopicPath: snapshots | ||
clusterCoordinationTopicName: coordinate | ||
pulsarFunctionsNamespace: sample/standalone/functions | ||
pulsarServiceUrl: pulsar://localhost:6650 | ||
pulsarWebServiceUrl: http://localhost:8080 | ||
numFunctionPackageReplicas: 1 | ||
downloadDirectory: /tmp/pulsar_functions | ||
metricsConfig: | ||
metricsSinkClassName: org.apache.pulsar.functions.metrics.sink.PrometheusSink | ||
metricsCollectionInterval: 30 | ||
metricsSinkConfig: | ||
path: /metrics | ||
port: 9099 | ||
#threadContainerFactory: | ||
# threadGroupName: "Thread Function Container Group" | ||
processContainerFactory: | ||
logDirectory: | ||
|
||
schedulerClassName: "org.apache.pulsar.functions.worker.scheduler.RoundRobinScheduler" | ||
functionAssignmentTopicName: "assignments" | ||
failureCheckFreqMs: 30000 | ||
rescheduleTimeoutMs: 60000 | ||
initialBrokerReconnectMaxRetries: 60 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.