question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Q: how do replicas work in tye

See original GitHub issue

Replicas mean there are multiple instances of an application running. In Kubernetes, a ‘Service’ is what is used by an application which will then resolve to one of the instances.

When developing with tye, what will cause the difference instances to be used? Does the GetServiceUri method always resolve to the same instance?

cc @davidfowl @jkotalik

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
pattisapu01commented, Oct 2, 2020

On your localhost, replicas simply creates multiple “instances” of the program. For ex, if you specify “Replicas:2”, you can see 2 instances of the program in task manager on 2 different ports. you need to use an “Ingress” with route filters to load balance when resolving the URL to service replicas with more than 1 instance via “tye” service discovery. https://github.com/dotnet/tye/blob/master/docs/recipes/ingress.md

0reactions
tmdscommented, Oct 5, 2020

This is a tcp proxy

@davidfowl what process does the tcp proxying? Is there one such process per service (that has multiple replicas)? Where does this live in the source code?

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReplicaSet
A ReplicaSet is defined with fields, including a selector that specifies how to identify Pods it can acquire, a number of replicas indicating...
Read more >
What is Database Replication and How Does it Work?
Asynchronous replication is when the data is sent to the model server -- the server that the replicas take data from -- from...
Read more >
What Is a Kubernetes Replica?
Kubernetes replicas are clones that facilitate self-healing for pods. As with most processes and services, pods are liable to failure, errors, evictions, and ......
Read more >
amazon web services - How do s3 replicas work?
To answer your first question, replication occurs automatically for all s3 objects in a given region and provides 11 9s durability unless ...
Read more >
Replica - Wikipedia
Replicas work well in museum settings because they have the ability to look so real and accurate that people can feel the authentic...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found