Questions tagged [kubernetes]
The kubernetes tag has no usage guidance.
38
questions
0
votes
0
answers
60
views
sync over async in K8S
We build up a microservice architecture which is called from above by a REACT SPA. All is deployed in the AWS Cloud, that is to say in an AWS EKS (K8S). We have at most 600 users in parallel.
Do you ...
1
vote
1
answer
70
views
How to improve this synchronous job execution design?
Here is the design step by step:
User opens a webpage
Inputs few details in the form
Click submit
Request goes to API server
API server creates a pod in Kubernetes
Pod executes a script and stores ...
0
votes
1
answer
1k
views
Multithreaded processing of single REST requests
Background:
We're providing an API that provides information about all users within a given group. Our API is a high level facade over another low-level REST API.
To gather those information we first ...
0
votes
1
answer
88
views
Needed suggestions for key-value storage in Kubernetes
We have a requirement to store key value pairs (KVP) in Kubernetes and looking for possible options here. The requirements are as below:
KVP are small sized - 200 characters together.
KVP are short ...
0
votes
0
answers
33
views
Handling competing requests for the same "id" in different Kubernetes PODs
I have the following problem, I am implementing a delivery management service and a single order can be competed between N deliveryboys, this service is being executed on Kubernetes with 5 PODs of ...
-2
votes
1
answer
266
views
Ho do I implement Database per Service pattern in Kubernetes?
Assuming I wanted to implement the Database per Service pattern or one of its related patterns like Private-Tables-, Schema- or Database-server-per-service (https://microservices.io/patterns/data/...
0
votes
1
answer
43
views
How to check for docker specific code and APIs in an application for later migration to containerd?
So I have a couple of Java RESTful microservices, and since the past few years I have basically been using Docker to build them and deploy them over to a Kubernetes cluster.
Our team is upgrading ...
0
votes
0
answers
61
views
Do datacenters have conditions that might throttle component clock speed (either intentionally or automatically)?
Here is the question.
On a 2.2 GHz processor with 6 physical threads and 6 hyperthreads, I see performance on the order of 3-10s for a particular job involving OpenCV.
I do not specify that the ...
0
votes
0
answers
152
views
Managing concurrent TCP connections with Go, Docker and Kubernetes
I need to consume several APIs concurrently. In order to do that I decided to containerize each API client code and manage them using Kubernetes. Some of those APIs need to be "walked". They ...
0
votes
1
answer
50
views
How to design an application for stalling file processing?
I have an application that is receiving a live stream of files, I am using active MQ for listening to the file arrival in s3. As soon as the file arrives in s3 my application downloads the file and ...
-1
votes
2
answers
106
views
Delaying pods creation or recreating pods until tasks in other pods are completed
I need some help with better kubernetes resource deployment.
Essentially, I've 2 components. C1 and C2.
My task is to not deploy C2 pods or any resources until the tasks which are running in C1 are ...
2
votes
1
answer
806
views
Kubernetes cronjobs - triggering one after another completes - best practice?
I have a micro-service based system running in kubernetes bare-metal. The key aspects are:
download data from a datasource nightly and add to a database
get any new data from the database, run a ML ...
0
votes
0
answers
39
views
Kubernetes auto scaling
We are currently in the process of doing an infrastructure overhaul.
A bit of background of what our business model currently is:
We are an aggregator of bills and payment services for businesses. ...
-2
votes
2
answers
141
views
Should servers exit with 0 or 1 in case of caught errors?
What is the best practice in case a service has an error which we caught and handled?
Do we exit code 1 or 0?
-1
votes
1
answer
317
views
How to manage microservice dependencies in local development?
I'm currently developing two microservices to be deployed on kubernetes, but already facing problems to onboard another person to work on a feature in microservice A.
The dependencies are as follows
...
1
vote
2
answers
210
views
AWS Kubernetes - MySQL DB instance - RDS or Docker Mysql Image
We're trying to migrate to either a cheap hosting or aws Kubernetes to cut costs. Our website is a game site and has around 100 users. The servers include 2 mysql db, 2 tomcat server and a management ...
3
votes
1
answer
764
views
Routing Kubernetes to Different Versions of an API
At a previous job, we had a lot of excessive issues with versioning of our APIs, to the point where we had whole server farms for our services that were running specific versions for specific ...
0
votes
1
answer
71
views
Distributed processing of a large number of queues
I have a rather basic application hosted on Kubernetes, which connects to a Mongo database.
The app has a wallet feature. A user can put money in their wallet using real-world payments (e.g. via ...
0
votes
3
answers
430
views
Is microservices architecture a good candidate for a pipeline?
I have a monolithic application which can be divided into multiple steps and different steps have variable scaling requirement, however the input of the next step is the output of the current step. ...
1
vote
0
answers
27
views
Supplying Kubernetes pods with data from a persistent volume and writing back
To keep it simple, I have this service that stores data in a persistent volume. There are pods that are created by an API which use a subset of the stored data to perform an operation and generate new ...
-3
votes
1
answer
1k
views
How to implement time triggered batch processing in a K8s/Java Spring Boot environment?
Environment:
Kubernetes Cluster with Spring Boot microservices.
One microservice contains a database with a date in one column of a read-only table.
Problem/Requirement:
When the date is reached, an ...
2
votes
0
answers
80
views
Initializing Cassandra schema
Recently I have started working on a project in which we are using Cassandra. It's a quite a new project, so we haven't decided how to initialize the schema.
We are using Docker and Kubernetes. I've ...
-1
votes
1
answer
153
views
Show a service's status to the user
Some design thoughts on an application that is mostly event driven using kubernetes and docker.
The application is a web based application, a single page one. It shows updates from the back-end such ...
1
vote
2
answers
633
views
Kubernetes Cron Job is expensive?
I have to implement a feature in an existing application, which requires calling an API every minute. My app's microservices runs in Kubernetes environment.
To achieve this, my first thought is ...
-2
votes
1
answer
67
views
What are the benefits of running Apache Spark on Kubernetes?
When running Apache Spark one submits jobs to a Cluster Manager. The cluster manager is delegated with the task of accepting / declining requests for resources. The cluster manager could either be ...
0
votes
2
answers
573
views
How to manage kubernetes configmap values in version control across environments?
I am looking for a way to automate deployment of configmaps to our dev/qa/prod environments. Right now our applications rely on kubernetes configmap/secrets that we manually apply in the cluster using ...
0
votes
0
answers
320
views
Sending and receiving data from a Kubernetes Job
I'm working on this containerized API where in two steps (one asynchronous and one synchronous) the user can interact with the output generated by the first step trough a front-end service.
I wasn't ...
0
votes
1
answer
528
views
What's a good liveness probe for a Hangfire background job server?
We're in the process of moving everything to K8s and one of our applications is a small .NET Core 2.2 console app that runs a Hangfire background job server. At the moment the app runs as a Windows ...
1
vote
1
answer
2k
views
Microservices and 3rd party APIs
I recently joined a team who is trying to use "microservice" pattern for their new application. They've already started to implement API's. In the end it should be an API for both mobile and web UI. I ...
-2
votes
1
answer
550
views
How microservices db are updated and sync when scale? [closed]
Scenario:
In Case I have MS "MS-1"
Orchestration detect high volume
Orchestration create additional node with cloned MS "MS-2"
"MS-2" get request and update its DB
Question :
How MS "MS-1" will ...
-1
votes
1
answer
130
views
Containers Across Operating systems
Curious how containers are portable across development/testing/cloud environments with no worry needed about the underlying infrastructure. Does the Docker Engine essentially standardize operating ...
1
vote
0
answers
166
views
Can/should multiple application contexts share a common microservice in a single namespace?
My current employer has a single namespace into which all microservices for all projects are deployed.
Projects A, B and C all use microservice x in this common namespace:
Rather than each design ...
3
votes
1
answer
125
views
Run a job every hour with Lambda or something else?
I am working on a SaaS project that will have a trial when the trial is ending I get a webhook notification when 3 days are remaining. I do some stuff with this and one of the things is I update user....
0
votes
0
answers
109
views
How can I economically scale to 100+ instances of my .Net Core app without using 1 container per instance?
Currently I have a .NET core application, which fires up a new thread to hold each customer account. Each thread instance:
Is long running for many months or more
Holds open SignalR Websockets and ...
-1
votes
1
answer
54
views
What happens to network connections to the web app running in a pod, when a pod is down in a Kubernetes node?
Each pod represents single instance of the web application in a node of Kubernetes.
Lets say 100 users are signed into a web app like Stackoverflow and connected to Pod1 of NodeA. Pod1 is down now. ...
-4
votes
1
answer
121
views
How was industry dealing with containerizations and container orchestration before Docker and Kubernetes? [closed]
Before Kafka, we had RabbitMQ, ActiveMQ etc.
Mostly there use to be a something before version, in technology.
But What was industry using something similar to Docker and Kubernetes, before they ...
2
votes
1
answer
223
views
About databases in docker containers
I'm trying to understand containerized apps and databases and I'm trying to understand the microservice architecture using kubernetes. One thing that I couldn't get my mind convinced is the database ...
4
votes
0
answers
181
views
What are best practices for deploying different configurations per environment in Kubernetes/OpenShift?
Kubernetes provides a very elegant mechanism for managing configuration for pods using ConfigMaps. What's not clear from the documentation is what the recommended practice is for using ConfigMaps to ...