function-mesh icon indicating copy to clipboard operation
function-mesh copied to clipboard

update replicas will cause all pods been rescheduled

Open freeznet opened this issue 3 years ago • 3 comments

when updating replicas for a sink, all pods will be rescheduled, which is not expected behaviour. Should fix this BUG and add related tests.

freeznet avatar May 18 '22 02:05 freeznet

This is because the FunctionDetails have been passing as STS container template command and the FunctionDetails is changing when replicas changed.

freeznet avatar Jun 03 '22 00:06 freeznet

seems the parallelism is getting from the spec.replicas, since we are using k8s for auto-scaling, how about setting the parallelism to hardcoded 1?

jiangpengcheng avatar Jun 21 '22 05:06 jiangpengcheng

I have a proposal to use a proxy service to provide the ability for pulsar functions managed by Function Mesh to interact with the cluster.

Untitled Diagram drawio

In a preliminary idea, this service should provide the following interfaces.

  • Get the replicas number of the function
  • Get the status of the function

tpiperatgod avatar Nov 15 '22 09:11 tpiperatgod