Skip to content

How cadence helm charts deployment do load balancer? #5042

Answered by zedongh
zedongh asked this question in Q&A
Discussion options

You must be logged in to vote

For older version users (i.e. using tchanncel)

The cadence-samples codes give the basic yarpc dispatch construct using tchannel.NewChannelTransport
dispatcher

func (b *WorkflowClientBuilder) build() error {
	if b.dispatcher != nil {
		return nil
	}

	if len(b.hostPort) == 0 {
		return errors.New("HostPort is empty")
	}

	ch, err := tchannel.NewChannelTransport(
		tchannel.ServiceName(_cadenceClientName))
	if err != nil {
		b.Logger.Fatal("Failed to create transport channel", zap.Error(err))
	}

	b.Logger.Debug("Creating RPC dispatcher outbound",
		zap.String("ServiceName", _cadenceFrontendService),
		zap.String("HostPort", b.hostPort))

	b.dispatcher = yarpc.NewDispatcher(yarpc.Config{
		N…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by zedongh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant