Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update CI workflow #420

Merged
merged 19 commits into from
Jul 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .ci/clusters/compute_v1alpha1_function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: function-sample
namespace: default
spec:
image: streamnative/pulsar-functions-java-sample:2.10.0.0-rc10
image: streamnative/pulsar-functions-java-sample:2.9.2.23
className: org.apache.pulsar.functions.api.examples.ExclamationFunction
forwardSourceMessageProperty: true
maxPendingAsyncRequests: 1000
Expand Down
2 changes: 1 addition & 1 deletion .ci/clusters/compute_v1alpha1_function_builtin_hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: function-builtin-hpa-sample
namespace: default
spec:
image: streamnative/pulsar-functions-java-sample:2.10.0.0-rc10
image: streamnative/pulsar-functions-java-sample:2.9.2.23
className: org.apache.pulsar.functions.api.examples.ExclamationFunction
forwardSourceMessageProperty: true
maxPendingAsyncRequests: 1000
Expand Down
2 changes: 1 addition & 1 deletion .ci/clusters/compute_v1alpha1_function_hpa.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: function-hpa-sample
namespace: default
spec:
image: streamnative/pulsar-functions-java-sample:2.10.0.0-rc10
image: streamnative/pulsar-functions-java-sample:2.9.2.23
className: org.apache.pulsar.functions.api.examples.ExclamationFunction
forwardSourceMessageProperty: true
maxPendingAsyncRequests: 1000
Expand Down
19 changes: 10 additions & 9 deletions .ci/clusters/compute_v1alpha1_function_stateful.yaml
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
apiVersion: compute.functionmesh.io/v1alpha1
kind: Function
metadata:
name: java-function-stateful-sample
name: python-function-stateful-sample
namespace: default
spec:
image: streamnative/pulsar-functions-java-sample:2.10.0.0-rc10
className: org.apache.pulsar.functions.api.examples.WordCountFunction
image: streamnative/pulsar-functions-python-sample:2.9.2.23
className: wordcount_function.WordCountFunction
forwardSourceMessageProperty: true
maxPendingAsyncRequests: 1000
replicas: 1
maxReplicas: 5
logTopic: persistent://public/default/logging-function-logs
logTopic: persistent://public/default/logging-stateful-function-logs
input:
topics:
- persistent://public/default/java-function-stateful-input-topic
- persistent://public/default/python-function-stateful-input-topic
typeClassName: java.lang.String
output:
topic: persistent://public/default/java-function-stateful-output-topic
topic: persistent://public/default/python-function-stateful-output-topic
typeClassName: java.lang.String
resources:
requests:
Expand All @@ -27,13 +27,14 @@ spec:
memory: 1.1G
pulsar:
pulsarConfig: "test-pulsar"
java:
jar: /pulsar/examples/api-examples.jar
python:
py: /pulsar/examples/python-examples/wordcount_function.py
pyLocation: ""
clusterName: test-pulsar
autoAck: true
statefulConfig:
pulsar:
serviceUrl: "bk://sn-platform-pulsar-bk.default.svc.cluster.local:4181"
serviceUrl: "bk://sn-platform-pulsar-bookie.default.svc.cluster.local:4181"
---
apiVersion: v1
kind: ConfigMap
Expand Down
6 changes: 3 additions & 3 deletions .ci/clusters/compute_v1alpha1_functionmesh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ metadata:
spec:
functions:
- name: java-function
image: streamnative/pulsar-functions-java-sample:2.10.0.0-rc10
image: streamnative/pulsar-functions-java-sample:2.9.2.23
className: org.apache.pulsar.functions.api.examples.ExclamationFunction
replicas: 1
maxReplicas: 1
Expand All @@ -31,7 +31,7 @@ spec:
memory: 1.1G
clusterName: test
- name: golang-function
image: streamnative/pulsar-functions-go-sample:2.10.0.0-rc10
image: streamnative/pulsar-functions-go-sample:2.9.2.23
replicas: 1
maxReplicas: 1
input:
Expand All @@ -56,7 +56,7 @@ spec:
memory: 1.1G
clusterName: test
- name: python-function
image: streamnative/pulsar-functions-python-sample:2.10.0.0-rc10
image: streamnative/pulsar-functions-python-sample:2.9.2.23
className: exclamation_function.ExclamationFunction
replicas: 1
maxReplicas: 1
Expand Down
2 changes: 1 addition & 1 deletion .ci/clusters/compute_v1alpha1_go_function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: go-function-sample
namespace: default
spec:
image: streamnative/pulsar-functions-go-sample:2.10.0.0-rc10
image: streamnative/pulsar-functions-go-sample:2.9.2.23
forwardSourceMessageProperty: true
maxPendingAsyncRequests: 1000
replicas: 1
Expand Down
2 changes: 1 addition & 1 deletion .ci/clusters/compute_v1alpha1_py_function.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: py-function-sample
namespace: default
spec:
image: streamnative/pulsar-functions-python-sample:2.10.0.0-rc10
image: streamnative/pulsar-functions-python-sample:2.9.2.23
className: exclamation_function.ExclamationFunction
forwardSourceMessageProperty: true
maxPendingAsyncRequests: 1000
Expand Down
32 changes: 20 additions & 12 deletions .ci/clusters/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ affinity:
components:
autorecovery: false
pulsar_manager: false
sql_worker: false
proxy: false

## disable monitoring stack
monitoring:
Expand All @@ -38,37 +40,46 @@ monitoring:
grafana: false
# monitoring - node_exporter
node_exporter: false
loki: false

images:
zookeeper:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
bookie:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
autorecovery:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
broker:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
functions:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
proxy:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
presto:
repository: streamnative/pulsar-all
tag: 2.9.2.23

zookeeper:
replicaCount: 1

bookkeeper:
replicaCount: 1
# Ensure that the bookkeeper starts after the pulsar-init job is completed
replicaCount: 0
metadata:
image:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
configData:
PULSAR_PREFIX_autoRecoveryDaemonEnabled: "false"
PULSAR_PREFIX_dlog.bkcEnsembleSize: "1"
PULSAR_PREFIX_dlog.bkcWriteQuorumSize: "1"
PULSAR_PREFIX_dlog.bkcAckQuorumSize: "1"
# `BOOKIE_MEM` is used for `bookie shell`
BOOKIE_MEM: >
-Xms128m
Expand Down Expand Up @@ -97,7 +108,7 @@ bookkeeper:
pulsar_metadata:
image:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23

broker:
replicaCount: 1
Expand All @@ -110,8 +121,5 @@ broker:
managedLedgerDefaultWriteQuorum: "1"
managedLedgerDefaultAckQuorum: "1"

proxy:
replicaCount: 1

functions:
functionState: true
30 changes: 19 additions & 11 deletions .ci/clusters/values_custom_runner_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,27 +41,27 @@ monitoring:
images:
zookeeper:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent
bookie:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent
autorecovery:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent
broker:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent
proxy:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent
functions:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent

zookeeper:
Expand All @@ -72,8 +72,15 @@ bookkeeper:
metadata:
image:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
configData:
PULSAR_PREFIX_autoRecoveryDaemonEnabled: "false"
PULSAR_PREFIX_dlog.bkcEnsembleSize: "1"
PULSAR_PREFIX_dlog.bkcWriteQuorumSize: "1"
PULSAR_PREFIX_dlog.bkcAckQuorumSize: "1"
PULSAR_PREFIX_storage.range.store.dirs: "/pulsar/data/bookkeeper/ranges"
PULSAR_PREFIX_storage.serve.readonly.tables: "false"
PULSAR_PREFIX_storageserver.grpc.port: "4181"
# `BOOKIE_MEM` is used for `bookie shell`
BOOKIE_MEM: >
-Xms128m
Expand Down Expand Up @@ -102,7 +109,7 @@ bookkeeper:
pulsar_metadata:
image:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent

broker:
Expand All @@ -117,6 +124,7 @@ broker:
managedLedgerDefaultAckQuorum: "1"

functions:
functionState: true
component: functions-worker
enableCustomizerRuntime: false
runtimeCustomizerClassName: "org.apache.pulsar.functions.runtime.kubernetes.BasicKubernetesManifestCustomizer"
Expand Down Expand Up @@ -148,9 +156,9 @@ functions:
narExtractionDirectory: ""
functionRuntimeFactoryConfigs:
functionDockerImages:
JAVA: "streamnative/pulsar-functions-java-runner:2.10.0.0-rc10"
PYTHON: "streamnative/pulsar-functions-python-runner:2.10.0.0-rc10"
GO: "streamnative/pulsar-functions-go-runner:2.10.0.0-rc10"
JAVA: "streamnative/pulsar-functions-java-runner:2.9.2.23"
PYTHON: "streamnative/pulsar-functions-python-runner:2.9.2.23"
GO: "streamnative/pulsar-functions-go-runner:2.9.2.23"

proxy:
replicaCount: 1
34 changes: 22 additions & 12 deletions .ci/clusters/values_runner_images.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ affinity:
components:
autorecovery: false
pulsar_manager: false
sql_worker: false

## disable monitoring stack
monitoring:
Expand All @@ -40,39 +41,47 @@ monitoring:
images:
zookeeper:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent
bookie:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent
autorecovery:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent
broker:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent
proxy:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent
functions:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent
presto:
repository: streamnative/pulsar-all
tag: 2.9.2.23
pullPolicy: IfNotPresent

zookeeper:
replicaCount: 1

bookkeeper:
replicaCount: 1
replicaCount: 0
metadata:
image:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
configData:
PULSAR_PREFIX_autoRecoveryDaemonEnabled: "false"
PULSAR_PREFIX_dlog.bkcEnsembleSize: "1"
PULSAR_PREFIX_dlog.bkcWriteQuorumSize: "1"
PULSAR_PREFIX_dlog.bkcAckQuorumSize: "1"
# `BOOKIE_MEM` is used for `bookie shell`
BOOKIE_MEM: >
-Xms128m
Expand Down Expand Up @@ -101,7 +110,7 @@ bookkeeper:
pulsar_metadata:
image:
repository: streamnative/pulsar-all
tag: 2.10.0.0-rc10
tag: 2.9.2.23
pullPolicy: IfNotPresent

broker:
Expand All @@ -122,6 +131,7 @@ proxy:
## templates/function-worker-configmap.yaml
##
functions:
functionState: true
component: functions-worker
enableCustomizerRuntime: false
runtimeCustomizerClassName: "org.apache.pulsar.functions.runtime.kubernetes.BasicKubernetesManifestCustomizer"
Expand Down Expand Up @@ -161,9 +171,9 @@ functions:
disk: 1048576000
functionRuntimeFactoryConfigs:
functionDockerImages:
JAVA: "streamnative/pulsar-functions-java-runner:2.10.0.0-rc10"
PYTHON: "streamnative/pulsar-functions-python-runner:2.10.0.0-rc10"
GO: "streamnative/pulsar-functions-go-runner:2.10.0.0-rc10"
JAVA: "streamnative/pulsar-functions-java-runner:2.9.2.23"
PYTHON: "streamnative/pulsar-functions-python-runner:2.9.2.23"
GO: "streamnative/pulsar-functions-go-runner:2.9.2.23"
functionInstanceMinResources:
cpu: 0.1
ram: 10485760
Expand Down
2 changes: 2 additions & 0 deletions .ci/deploy_pulsar_cluster.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,5 @@ ci::install_pulsar_charts "$VALUES_FILE"
# test producer
ci::test_pulsar_producer

# enable stream storage server
#ci::enable_stream_storage_server
Loading