Slow connection to webserver from web, but not locally
Hi r/devops
I thought I would run this past you and see what you make of it.
I've setup an apache on a small IOT device (8gb ram, etc.). The apache redirects incoming connections to my docker container which has an nginx running. The apache is configured to serve on port 80.
If I
If I
My first instinct were to switch apache with nginx - but I got the same issue.
Here's the strange part: if I switch the nginx server to serve on port 8080 and change the port forwarding I get instant reply on the public IP using https://ip:8080
I've made a
>22:07:04.176280 IP (tos 0x0, ttl 63, id 9970, offset 0, flags [DF\], proto TCP (6), length 128)
>(CLIENT) > (SERVER).http: Flags [P.\], cksum 0xdee7 (correct), seq 0:76, ack 1, win 502, options [nop,nop,TS val 1648400780 ecr 1051286393\], length 76: HTTP, length: 76
>GET / HTTP/1.1
>Host: PUBLIC_IP
>User-Agent: curl/7.81.0
>Accept: */*
>
>22:07:04.176453 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF\], proto TCP (6), length 40)
>(SERVER) > (CLIENT): Flags [R\], cksum 0x23f6 (correct), seq 634267650, win 0, length 0
The above keeps repeating multiple times, then suddenly a minute later, it accepts the request.
Has anyone experienced something like this before? There is nothing in /var/log/nginx/error.log.
https://redd.it/1e33enq
@r_devops
Hi r/devops
I thought I would run this past you and see what you make of it.
I've setup an apache on a small IOT device (8gb ram, etc.). The apache redirects incoming connections to my docker container which has an nginx running. The apache is configured to serve on port 80.
If I
curl it's local IP from another PC on the network, I get a fast response - 200 - everything is great.If I
curl it's public IP I get a 30-60s delay then eventually it returns 200.My first instinct were to switch apache with nginx - but I got the same issue.
Here's the strange part: if I switch the nginx server to serve on port 8080 and change the port forwarding I get instant reply on the public IP using https://ip:8080
I've made a
tcpdump 'tcp port 80' --vvi eth0 and I see my server is resetting all incoming connections.>22:07:04.176280 IP (tos 0x0, ttl 63, id 9970, offset 0, flags [DF\], proto TCP (6), length 128)
>(CLIENT) > (SERVER).http: Flags [P.\], cksum 0xdee7 (correct), seq 0:76, ack 1, win 502, options [nop,nop,TS val 1648400780 ecr 1051286393\], length 76: HTTP, length: 76
>GET / HTTP/1.1
>Host: PUBLIC_IP
>User-Agent: curl/7.81.0
>Accept: */*
>
>22:07:04.176453 IP (tos 0x0, ttl 64, id 0, offset 0, flags [DF\], proto TCP (6), length 40)
>(SERVER) > (CLIENT): Flags [R\], cksum 0x23f6 (correct), seq 634267650, win 0, length 0
The above keeps repeating multiple times, then suddenly a minute later, it accepts the request.
Has anyone experienced something like this before? There is nothing in /var/log/nginx/error.log.
https://redd.it/1e33enq
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
Need Advice
I have two years of experience in Integration Development & 1 in Java. I want to make a switch to devops as it is a bit similar to integration. Will that be hard? What topics do I need to study/practice to land a entry level devops job?
https://redd.it/1e34zjc
@r_devops
I have two years of experience in Integration Development & 1 in Java. I want to make a switch to devops as it is a bit similar to integration. Will that be hard? What topics do I need to study/practice to land a entry level devops job?
https://redd.it/1e34zjc
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
Help in in choosing the right path devops or other.
Hi everyone,
I graduated in 2024 from a low-rank NIT with a degree in mechanical engineering. I have moderate knowledge of data analytics and data science. While seeking off-campus placements, I've noticed that many job descriptions require experience in the data science domain.
Given this, I'm considering switching to either data engineering or DevOps/cloud. As a fresher, which path would be more viable for getting placed? I would really appreciate some genuine advice on which field might offer better opportunities at the earliest.
https://redd.it/1e359fd
@r_devops
Hi everyone,
I graduated in 2024 from a low-rank NIT with a degree in mechanical engineering. I have moderate knowledge of data analytics and data science. While seeking off-campus placements, I've noticed that many job descriptions require experience in the data science domain.
Given this, I'm considering switching to either data engineering or DevOps/cloud. As a fresher, which path would be more viable for getting placed? I would really appreciate some genuine advice on which field might offer better opportunities at the earliest.
https://redd.it/1e359fd
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
How are you guys doing CI/CD for Kibana Dashbaord
For CI/CD we are doing manual dashboard deployment going to UI , wondered how others are doing so I can see version and automated deployment using Jenkins etc
https://redd.it/1e36kzr
@r_devops
For CI/CD we are doing manual dashboard deployment going to UI , wondered how others are doing so I can see version and automated deployment using Jenkins etc
https://redd.it/1e36kzr
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
Linux admin —> ...C/C++ dev?
It is my first serious job, i now work with different virtualization tools, write automation scripts, inspect deployment of servers under Kubernetes managment and even do so myself sometimes (im new in this job so i don't do much stuff for now)
I find it exciting and i love my job. But being a teensy bit paranoic i sense i need some skills to gain in spare time. The most logical way is to tune up some CI/CD+Jenkins+DBA alongside with a little pet-project in Python or Go to feel more confident with Git, programming and microservices and become a DevOps.
However i recently got interested in Linux kernel and CTF tasks (pwn) and i just had a thought that it could be a possible career path in fields like CyberSec or Telecom, because both paths require expert knowledge in Linux, network and protocols. Not as popular as DevOps transitioning, though, but still.
Does anyone know anyone who switched position like that? Or maybe you can refute my point about it? Thank you anyways
https://redd.it/1e38hcr
@r_devops
It is my first serious job, i now work with different virtualization tools, write automation scripts, inspect deployment of servers under Kubernetes managment and even do so myself sometimes (im new in this job so i don't do much stuff for now)
I find it exciting and i love my job. But being a teensy bit paranoic i sense i need some skills to gain in spare time. The most logical way is to tune up some CI/CD+Jenkins+DBA alongside with a little pet-project in Python or Go to feel more confident with Git, programming and microservices and become a DevOps.
However i recently got interested in Linux kernel and CTF tasks (pwn) and i just had a thought that it could be a possible career path in fields like CyberSec or Telecom, because both paths require expert knowledge in Linux, network and protocols. Not as popular as DevOps transitioning, though, but still.
Does anyone know anyone who switched position like that? Or maybe you can refute my point about it? Thank you anyways
https://redd.it/1e38hcr
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
CI/CD with GitHub Actions
I want to implement CI/CD in GitHub Actions for the dev environment, which will look like this:
When creating a PR, the build.yml workflow will be triggered. It will build a Docker image and run all tests (Cypress, security, vulnerability, etc.). Then, the tested Docker image will be pushed to the registry.
The next trigger will be after merging the pull request into the main branch. The deploy-dev.yml will run, which will download the tested Docker image and deploy it using Helm.
Everything works great when only one pull request is open. But when more than one PR is open, a situation can occur where PR2 gets merged first, followed by PR1. In this case, the Docker image from PR1 overwrites the Docker image from PR2. And all the changes from PR2 are gone.
A solution to this problem would be to rebuild the Docker image in deploy-dev.yml, but this seems like a waste of resources. Any idea how to solve this?
https://redd.it/1e3brq6
@r_devops
I want to implement CI/CD in GitHub Actions for the dev environment, which will look like this:
When creating a PR, the build.yml workflow will be triggered. It will build a Docker image and run all tests (Cypress, security, vulnerability, etc.). Then, the tested Docker image will be pushed to the registry.
The next trigger will be after merging the pull request into the main branch. The deploy-dev.yml will run, which will download the tested Docker image and deploy it using Helm.
Everything works great when only one pull request is open. But when more than one PR is open, a situation can occur where PR2 gets merged first, followed by PR1. In this case, the Docker image from PR1 overwrites the Docker image from PR2. And all the changes from PR2 are gone.
A solution to this problem would be to rebuild the Docker image in deploy-dev.yml, but this seems like a waste of resources. Any idea how to solve this?
https://redd.it/1e3brq6
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
CI/CD with GitHub Actions
I want to implement CI/CD in GitHub Actions for the dev environment, which will look like this:
When creating a PR, the build.yml workflow will be triggered. It will build a Docker image and run all tests (Cypress, security, vulnerability, etc.). Then, the tested Docker image will be pushed to the registry.
The next trigger will be after merging the pull request into the main branch. The deploy-dev.yml will run, which will deploy the tested Docker Image using Helm.
Everything works great when only one pull request is open. But when more than one PR is open, a situation can occur where PR2 gets merged first, followed by PR1. In this case, the Docker image from PR1 overwrites the Docker image from PR2. And all the changes from PR2 are gone.
A solution to this problem would be to rebuild the Docker image in deploy-dev.yml, but this seems like a waste of resources. Any idea how to solve this?
https://redd.it/1e3brn3
@r_devops
I want to implement CI/CD in GitHub Actions for the dev environment, which will look like this:
When creating a PR, the build.yml workflow will be triggered. It will build a Docker image and run all tests (Cypress, security, vulnerability, etc.). Then, the tested Docker image will be pushed to the registry.
The next trigger will be after merging the pull request into the main branch. The deploy-dev.yml will run, which will deploy the tested Docker Image using Helm.
Everything works great when only one pull request is open. But when more than one PR is open, a situation can occur where PR2 gets merged first, followed by PR1. In this case, the Docker image from PR1 overwrites the Docker image from PR2. And all the changes from PR2 are gone.
A solution to this problem would be to rebuild the Docker image in deploy-dev.yml, but this seems like a waste of resources. Any idea how to solve this?
https://redd.it/1e3brn3
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
How to deploy a NextJS App on Azure static web App platform?
I have written Terraform code for deploying a static web app on Azure.
But I am not sure how to deploy the NextJS App on it. Do I build the pages beforehand and only deploy the static pages on Azure? Do I use GitHub actions to do that for me?
Any help or suggestions are welcome!
Thanks in advance for your time.
https://redd.it/1e3enku
@r_devops
I have written Terraform code for deploying a static web app on Azure.
But I am not sure how to deploy the NextJS App on it. Do I build the pages beforehand and only deploy the static pages on Azure? Do I use GitHub actions to do that for me?
Any help or suggestions are welcome!
Thanks in advance for your time.
https://redd.it/1e3enku
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
Discovering DevSecOps
I wanted to get into DevSecOps but always wondered how was that different from a regular security perspective.
I created a short article for anyone trying to get into DevSecOps (Getting Into DevSecOps)
Also wondering why is this not just a part of DevOps and does it really deserve its own title?
https://redd.it/1e3ijpy
@r_devops
I wanted to get into DevSecOps but always wondered how was that different from a regular security perspective.
I created a short article for anyone trying to get into DevSecOps (Getting Into DevSecOps)
Also wondering why is this not just a part of DevOps and does it really deserve its own title?
https://redd.it/1e3ijpy
@r_devops
Medium
Getting Into DevSecOps
What is DevSecOps?
Is anyone else in jumpbox and/or MFA hell?
We MFA to login to our work PCs, MFA to get access to this, that, jumpbox here, jumpbox there. Oh the PAM tool has logged me out again. JFC. I spend half my day logging in to things.
https://redd.it/1e3m0as
@r_devops
We MFA to login to our work PCs, MFA to get access to this, that, jumpbox here, jumpbox there. Oh the PAM tool has logged me out again. JFC. I spend half my day logging in to things.
https://redd.it/1e3m0as
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
How would you automate restoration of AWS RDS snapshot
We take daily snapshots of our AWS postgresql RDS database. In the event we want to restore our snapshot quickly is there a way we can automate this? We use Github Actions for our CI/CD pipeline and DB env vars are injected into Kubernetes pod on release in our CI/CD pipeline
https://redd.it/1e3mwgb
@r_devops
We take daily snapshots of our AWS postgresql RDS database. In the event we want to restore our snapshot quickly is there a way we can automate this? We use Github Actions for our CI/CD pipeline and DB env vars are injected into Kubernetes pod on release in our CI/CD pipeline
https://redd.it/1e3mwgb
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
SchemaFlow - A database migration tool that bridges the gap between ORM migration patterns and SQL-first workflows.
One of the main frustrations that I have with modern SQL-first migration tools is that it quickly becomes difficult to understand a schema by reading the migration files directly. The true structure of a table could span multiple files meaning that reading its initial definition is not enough to understand its true structure.
ORMs alleviate this problem by separating the schema definition from the migrations themselves. This makes it very easy to understand a database schema by reading the code. However, for those of us who operate in SQL-first environments this isn’t a luxury that we have.
I set out to solve this problem with SchemaFlow (https://github.com/f-prime/schemaflow) and bridge the gap between ORMs and SQL-first workflows.
Hopefully some of you here will find it helpful!
https://redd.it/1e3obq1
@r_devops
One of the main frustrations that I have with modern SQL-first migration tools is that it quickly becomes difficult to understand a schema by reading the migration files directly. The true structure of a table could span multiple files meaning that reading its initial definition is not enough to understand its true structure.
ORMs alleviate this problem by separating the schema definition from the migrations themselves. This makes it very easy to understand a database schema by reading the code. However, for those of us who operate in SQL-first environments this isn’t a luxury that we have.
I set out to solve this problem with SchemaFlow (https://github.com/f-prime/schemaflow) and bridge the gap between ORMs and SQL-first workflows.
Hopefully some of you here will find it helpful!
https://redd.it/1e3obq1
@r_devops
GitHub
GitHub - f-prime/schemaflow: A database migration tool that bridges the gap between ORM migration patterns and SQL-first workflows.
A database migration tool that bridges the gap between ORM migration patterns and SQL-first workflows. - f-prime/schemaflow
How do you foster a DevOps culture in your organization?
Fostering a DevOps culture involves breaking down silos between development and operations teams, encouraging collaboration, and promoting continuous improvement.
In our organization, we prioritize open communication, regular feedback loops, and cross-functional training.
Implementing automation and CI/CD pipelines has streamlined workflows, while regular retrospectives help us learn and adapt.
How do you cultivate DevOps culture in your team?
https://redd.it/1e3p5n2
@r_devops
Fostering a DevOps culture involves breaking down silos between development and operations teams, encouraging collaboration, and promoting continuous improvement.
In our organization, we prioritize open communication, regular feedback loops, and cross-functional training.
Implementing automation and CI/CD pipelines has streamlined workflows, while regular retrospectives help us learn and adapt.
How do you cultivate DevOps culture in your team?
https://redd.it/1e3p5n2
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
Would you consider a role where you were in office 4 days a week while rest of team worked remotely?
Currently looking a job where it requires me to be in office 4 days a week while the rest of my team are remote. They come in sporadically but not often.
My immediate line manager is also remote 100%.
Seems kinda fishy to me. Would you take it?
https://redd.it/1e3rfrr
@r_devops
Currently looking a job where it requires me to be in office 4 days a week while the rest of my team are remote. They come in sporadically but not often.
My immediate line manager is also remote 100%.
Seems kinda fishy to me. Would you take it?
https://redd.it/1e3rfrr
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
WeAreDevelopers Berlin Conference is worth it?
I won the tickets for the WeAreDevelopers. They are worth 600€ or something. It will be in Berlin and I would need to travel to attend. I wanted to know if it is worth going, experiences and recommendations. I live in Switzerland so not exactly super close. I am looking for a job so my main interest is to check for a job and connect with people. Learn what people are using and so on. I just want to prevent myself from going to a BS conference with a lot of sales and motivational talks. Is this one, one of those?
Thanks and enjoy your day.
https://redd.it/1e3rto0
@r_devops
I won the tickets for the WeAreDevelopers. They are worth 600€ or something. It will be in Berlin and I would need to travel to attend. I wanted to know if it is worth going, experiences and recommendations. I live in Switzerland so not exactly super close. I am looking for a job so my main interest is to check for a job and connect with people. Learn what people are using and so on. I just want to prevent myself from going to a BS conference with a lot of sales and motivational talks. Is this one, one of those?
Thanks and enjoy your day.
https://redd.it/1e3rto0
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
I have some questions about on call
Fellow DevOps guy here, these are my questions
1. What is your on call schedule?
2. How many calls/incidents do you have per day or per hour?
3. What steps do you take to reduce the frequency of incidents?
4. How to have peace of mind during on call?
Thanks in advance.
https://redd.it/1e3tivz
@r_devops
Fellow DevOps guy here, these are my questions
1. What is your on call schedule?
2. How many calls/incidents do you have per day or per hour?
3. What steps do you take to reduce the frequency of incidents?
4. How to have peace of mind during on call?
Thanks in advance.
https://redd.it/1e3tivz
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
how to move internally within a company?
hey all, current in a cloud support engineer role working with cloud security products, i’m wanting to transition into devops over next 12-18 months but unsure how i would move internally or build the connections to do so!
i’ve solid pipeline, terraform and great K8/docker knowledge as is with some good fundamental aws knowledge too (learning everyday actively), actively building web apps built on devops build practices etc so keeping my personal projects up to speed for experience.
i’ve only joined my current place in the last 6 months but already want to move out of support to a more engineering role, how would i make the first steps into a more engineering role?
https://redd.it/1e3tf30
@r_devops
hey all, current in a cloud support engineer role working with cloud security products, i’m wanting to transition into devops over next 12-18 months but unsure how i would move internally or build the connections to do so!
i’ve solid pipeline, terraform and great K8/docker knowledge as is with some good fundamental aws knowledge too (learning everyday actively), actively building web apps built on devops build practices etc so keeping my personal projects up to speed for experience.
i’ve only joined my current place in the last 6 months but already want to move out of support to a more engineering role, how would i make the first steps into a more engineering role?
https://redd.it/1e3tf30
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
Scripting alternative to Make
Hi! Not sure if this is the perfect forum for this, but I don't want to wander around Reddit all day to try and find the perfect subreddit. Please do redirect me if I'm somewhere I shouldn't be.
Currently, at work, we use make for running various scripts that make really isn't designed for. For example:
"make db-dump" dumps the database to a file
"make db-load" loads the latest dump
and so on. The more commands we add, the more complex the system grows. We had to add a "list" command in order to actually see what our Makefile can do (through which the Makefile parses itself, from what I can understand). There's absolutely no support for --help, and sending parameters to a command is a nightmare.
Is there a good alternative to make for these types of use-cases? I.e. not building, but just running a group of bash commands?
https://redd.it/1e3v2e3
@r_devops
Hi! Not sure if this is the perfect forum for this, but I don't want to wander around Reddit all day to try and find the perfect subreddit. Please do redirect me if I'm somewhere I shouldn't be.
Currently, at work, we use make for running various scripts that make really isn't designed for. For example:
"make db-dump" dumps the database to a file
"make db-load" loads the latest dump
and so on. The more commands we add, the more complex the system grows. We had to add a "list" command in order to actually see what our Makefile can do (through which the Makefile parses itself, from what I can understand). There's absolutely no support for --help, and sending parameters to a command is a nightmare.
Is there a good alternative to make for these types of use-cases? I.e. not building, but just running a group of bash commands?
https://redd.it/1e3v2e3
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
Free Review Copies of "Solutions Architect's Handbook 3rd edition"
Packt has published "Solutions Architect's Handbook: Kick-start your journey to becoming a solutions architect" by Saurabh Shrivastava.
As part of our marketing activities, we are offering free digital copies of the book in return for unbiased feedback in the form of a reader review.
Here's what you will learn from the book:
* Understand the role of a solutions architect and the skills required to become one
* Learn about different architecture patterns and how to select the right one for your project
* Explore various cloud computing concepts and services offered by major cloud providers
* Discover best practices for designing and implementing secure, scalable, and cost-efficient solutions
* Gain insights into data architecture, microservices architecture, and event-driven architecture
* Unlock the potential of cutting-edge technologies like large language models, generative AI, and deep learning innovations
* Enhance your solution architecture skills with practical insights from real-world scenarios
* Level up your soft skills with career-accelerating techniques
If you feel you might be interested in this opportunity, please comment below on or before 31st July 2024.
https://redd.it/1e3x24i
@r_devops
Packt has published "Solutions Architect's Handbook: Kick-start your journey to becoming a solutions architect" by Saurabh Shrivastava.
As part of our marketing activities, we are offering free digital copies of the book in return for unbiased feedback in the form of a reader review.
Here's what you will learn from the book:
* Understand the role of a solutions architect and the skills required to become one
* Learn about different architecture patterns and how to select the right one for your project
* Explore various cloud computing concepts and services offered by major cloud providers
* Discover best practices for designing and implementing secure, scalable, and cost-efficient solutions
* Gain insights into data architecture, microservices architecture, and event-driven architecture
* Unlock the potential of cutting-edge technologies like large language models, generative AI, and deep learning innovations
* Enhance your solution architecture skills with practical insights from real-world scenarios
* Level up your soft skills with career-accelerating techniques
If you feel you might be interested in this opportunity, please comment below on or before 31st July 2024.
https://redd.it/1e3x24i
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
Operating Systems config with IaC
Hey guys, DevOps junior here. I would like to deploy VMs using some sort of IaC and to configure them dynamically. As part of creating Kubernetes cluster as a service on an on-premise, air gapped environment.
I know I can use ansible to configure the servers and change their configuration but I found using declarative manifest much more simple to use. Therefore I wondered if there is a platform that knows how to also configure a server (of some Linux distribution ) using IaC
Thank u guys in advance.
https://redd.it/1e3z438
@r_devops
Hey guys, DevOps junior here. I would like to deploy VMs using some sort of IaC and to configure them dynamically. As part of creating Kubernetes cluster as a service on an on-premise, air gapped environment.
I know I can use ansible to configure the servers and change their configuration but I found using declarative manifest much more simple to use. Therefore I wondered if there is a platform that knows how to also configure a server (of some Linux distribution ) using IaC
Thank u guys in advance.
https://redd.it/1e3z438
@r_devops
Reddit
From the devops community on Reddit
Explore this post and more from the devops community
Does this read like a DevOps resume to you?
anonymized resume:
https://imgur.com/a/5puugx9
I have roughly 13 years of experience split between development and testing, however the majority of my testing gigs have been focused on CI/CD and some server management. I'm attempting to make a break into devops and have been adjusting my resume as much as possible to open that door.
I have a day or two left on a course I'm taking for SAA-C03, after completing that and (hopefully) passing the exam, I'm going to start hitting the job applications hard. But thought I'd get some people's opinions before doing so. Please let me know if anything in my resume sticks out (for good or bad reasons).
Thanks!
https://redd.it/1e3y9h8
@r_devops
anonymized resume:
https://imgur.com/a/5puugx9
I have roughly 13 years of experience split between development and testing, however the majority of my testing gigs have been focused on CI/CD and some server management. I'm attempting to make a break into devops and have been adjusting my resume as much as possible to open that door.
I have a day or two left on a course I'm taking for SAA-C03, after completing that and (hopefully) passing the exam, I'm going to start hitting the job applications hard. But thought I'd get some people's opinions before doing so. Please let me know if anything in my resume sticks out (for good or bad reasons).
Thanks!
https://redd.it/1e3y9h8
@r_devops
Imgur
Discover the magic of the internet at Imgur, a community powered entertainment destination. Lift your spirits with funny jokes, trending memes, entertaining gifs, inspiring stories, viral videos, and so much more from users.