Reddit DevOps
270 subscribers
8 photos
31.1K links
Reddit DevOps. #devops
Thanks @reddit2telegram and @r_channels
Download Telegram
Python or Golang for Long term?

I have 3 years of overall experience in Software and IT Engineering.

For automation, I have used Shell Scripting so far. But Now I want to learn a new language for Automation tasks and Software Development too.

The project I'm working on uses Golang extensively but the leads have given me free hand to explore any language I want.

My Initial thoughts were to learn Python, keeping in mind future career aspects, but Golang is used in my Project. Since I have planned to stay here for next 2 years, I'm confused which language to choose at this point of time.

Your opinions/suggestions/advices are most welcome!

https://redd.it/1cgm5fl
@r_devops
A list of Free DevOps Courses from Coursera.

Learn Docker, Kubernetes and Azure DevOps from Free Courses on Coursera. Here are 7 free courses from Coursera which you can take for free without any Certificate. **Main Article**

https://redd.it/1cgs7u1
@r_devops
Moving away from docker, old school setup ideas?...

We have this server (VPS) running docker and deploying via docker and it's been a game of babysitting docker since the origin of time; mysterious crashes that only occur inside of docker, segmentation faults inside JavaScript code only on docker, it's slow, network configuration is a nightmare, and the list adds up.

Finally I am fed up with it and I am thinking of moving away from it, the system works via clusters (each cluster is a VPS), and three main databases.

The databases were taken away from docker after they had terrible performance and mysterious crashes; so they are now dedicated and have been working fine ever since.

But now the cluster is to be moved away, the cluster is just composed of a nginx balancer/SSL, a redis cache, and a bunch of self spawning NodeJS services; the nginx server load balances; the NodeJS services can crash, for example due to bad code or some sort of serious error or oversight, they log what happened, sending a warning over the databases, before committing seppuku.

And a new instance replaces it, on the same port.

Multiple clusters can work at the same time, independently of each other, they are technically copies other than the master cluster.

The cluster is the part that needs consistent redeployment, over different machines in different geographical regions; one may be in a dataserver, other may be on a potato for a machine somewhere in Africa; you ssh in the machine, stop the cluster, rsync the new system, start the cluster; but clearly something must watch all the processes, something must determine the scale, something must install and setup the dependencies (nginx, node and redis).

I could write a bash script by hand to do all this, make style (like a makefile), or maybe there's something better I am ignoring.

https://redd.it/1cgtw97
@r_devops
👍1
Open Source Datadog Guide

We published an open source guide to help customers make sense of datadog. It's meant as a reference for engineers and organizations that want to make the most of their datadog usage and avoid serious gotchas that could result in significant higher costs or effort. It's still early days and the guide is far from comprehensive - please help by contributing 🙏

https://github.com/nimbushq/og-datadog

https://redd.it/1cgv55f
@r_devops
OpenTofu 1.7.0 is out with State Encryption, Dynamic Provider-defined Functions

Hey there, technical lead of the OpenTofu project here!
We’re proud to announce that OpenTofu 1.7.0 is now officially out!
It includes State Encryption, Provider-defined Functions, Declarative removed blocks, loopable import blocks, and much more!
You can find the launch post here, as well as the release itself here.
Looking forward to hearing what you think!

https://redd.it/1cgwgec
@r_devops
How do you get your mojo back after burnout?

A few years ago I burnt myself out, like really burt out. I spiraled for a bit, had a leave of absence but eventually got my feet back under me.

I'm now trying to get back in my groove but I can't find it for the life of me. I've tried a few different positions at different companies but no matter what the work is I just can't do more then the bare minimum. I admit part of my spiral was due to the lack of recognition for the work that put me into it. I think this plays a big role in this but I just can't get my mojo back.

https://redd.it/1cgw05j
@r_devops
Developer experience session with Confluent's platform team

We are hosting a Zoom session with Confluent to talk about their internal pluggable service runtimes - language-specific, plugin-based component frameworks with the most common components that teams need included out-of-the-box.


About the guest:
Cody is an OG at Confluent currently managing the Platform Engineering Team (Service Foundations team). https://www.linkedin.com/in/codyaray/


When: Friday May 3rd, 2024 at 11am PDT | 2pm EDT
RSVP: https://forms.gle/Td1xzX8iFXTbdmAq9

https://redd.it/1cgyq8k
@r_devops
Looking for something like Prometheus but for development debugging rather than monitoring

Finally got around to playing with Prometheus+Grafana. Both excellent tools. I'm building Prometheus metrics into a Golang service I'm developing. I find the Go runtime data it exposes to be very useful. However, I find myself trying to shoehorn the charts into a debugging role, for example if I think I have a memory leak I find myself checking my Grafana charts for clues.

This isn't very effective because Prometheus only updates every 15+ seconds so my iterations are slow. What I really need is immediate data. I'm going to try cranking up the Prometheus polling rate, but I figured I should also check and see if there are any tools that are more designed for this sort of thing that I should be looking into.

https://redd.it/1cguilz
@r_devops
.NET Shop, Tools for Performance Analysis

Hello everyone,

I'm fairly new to performance in general, but I see tons of resources on performance analyzing via perf tools in linux like from Brendan Gregg.

In a dotnet shop, how would I go utilizing tools that are equivalent to this for gathering performance related data that can help me debug performance bottlenecks?

I was thinking either gaining access to the actual server and running CLI commands that .NET already has or running a container in linux that has the APIs hosted there, but I assume that wouldn't be accurate performance analysis due to the varying environment differences.

I've been learning how to utilize perfview/WPA and just using the stack trace that is gathered on Application Insight.

Some tools we use for monitoring/logging are:

\- Azure/Application Insight

\- Splunk

I'm quite lost on which direction to go, but if anyone can help. Thank you!

https://redd.it/1cgz8o8
@r_devops
How are SaaS Companies typically hosted

Hey,


I currently host my SaaS as an Azure App service for the backend and Azure Static Web Apps for the frontend, if anyone else here is on Azure, how do you host your frontend & backend? The issue is switching to NextJS so site will no longer be static and will require SSR with the frontend.

Best,


NoWeakness

https://redd.it/1ch46qs
@r_devops
Where to go after DevOps?

I have been in technology long enough to have experienced the early days of the traditional sysadmins with in house servers, networking, then DevOps, SRE and most recently platform engineering, understanding they are not exactly the same thing. This path brought me a lot of knowledge and professional satisfaction to a certain degree, however, I think I am in a pivotal point where i don't know what makes sense for me to be the next step.

I would like to capture some impressions from people who had transit a similar path, what was next for you?

https://redd.it/1ch4twx
@r_devops
Deploying uWSGI without NGINX (or webservers)

I am currently designing a deployment for a financial app managing 100k pay points.

Options are below
haproxy (load balancer) => nginx/uwsgi/django
or
nginx (load balancer) => uwsgi/django
or
haproxy (load balancer) => uwsgi/django

To reduce latency, I am leaning towards the last option which is removing NGINX and making uWSGI to ask as the reverse proxy as well as the wsgi.

What are the cons, or issues with the option?

https://redd.it/1ch8b79
@r_devops
Terraform and Ansible were already Terrible in 2016

"Provison servers, configure servers. IBM might be on to something..."

https://www.tibobeijen.nl/2024/04/30/terrible-and-ansible-were-already-terrible-in-2016/

Blogged a bit about the lifecycle of an in-house tool, as much as it is about DevOps culture within a large(-ish) organization. I hope it makes for an entertaining read!


https://redd.it/1chder2
@r_devops
ACloudGuru Discount Codes anyone?

Anyone got a working (May 2024) discount code for Cloud Guru membership? If you don't ask... etc.


I have found 50OFF but the Pluralsight redeem page is having none of it.

https://redd.it/1chijbq
@r_devops
How much should I ask for to move be on-call?

Hope this isn't too much of a 'career' question for this sub, let me know and I'l delete:

I'm working on salary at a small shop, just me and one SRE on incident response, and to close a large new client they're asking that we have an on-call policy. Previously it was pretty casual, now I'm being asked to cover half the calendar. We generally have less than one incident per week, but there were queueing issues late last year where there were incidents every day.

My manager, who is great, asked me to pick a number for compensation for on-call and I really don't know what to ask for. I like this job so I'm not going to quit or threaten to quit over this, just want some advice.

US salaried employee, making industry median if that's helpful.

https://redd.it/1chjqtr
@r_devops
should i learn linux or centOS?

which should i learn linux or centOS for devops? is centos better than linux?

https://redd.it/1chkwyv
@r_devops
Mac in cloud replacement

Hi everyone, we are currently using mac in cloud services in order to run a dedicated mac server, as we have crucial software that is available only on IOS.

We have multiple users login via VNC in order to work simultaneously, and currently we are experiencing some issues with mac in cloud.

I am looking for a new mac server cloud provider, and looking for recommendations.

I saw macstadium and macweb, anyone have any previous experience with them?


https://redd.it/1chlgom
@r_devops
Unable to access docker container from host

I'm not able to access my python container from localhost:3000. What might be the issue and how do I resolve it .

The docker file is,

FROM python:3.7
RUN apt-get update -y && apt-get upgrade -y
RUN apt-get install \
gcc nano \
ffmpeg libasound-dev portaudio19-dev libportaudio2 libportaudiocpp0 \
postgresql postgresql-contrib -y
RUN pip install numpy scipy matplotlib pydub pyaudio psycopg2 flask
WORKDIR /code
EXPOSE 3000
CMD ["python3", "./dejavu/api/api.py"]


The docker compose file is

version: "3"
services:
db:
build:
context: ./docker/postgres
environment:
- POSTGRES_DB=dejavu
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=password
networks:
- db_network

python:
build:
context: ./docker/python
ports:
- "3000:3000"
volumes:
- .:/code
depends_on:
- db
networks:
- db_network

networks:
db_network:
driver: bridge

The flask API is running successfully on docker port 3000.

https://redd.it/1chjqpw
@r_devops
👍1
Resources to learn Kubernetes

Hello everyone,
I wanted to learn k8, I visited the documentation and was overwhelmed. Can you please help me with some resources that would help me?
Maybe a course on udemy it something?

Thank you in advance


https://redd.it/1chqf97
@r_devops
GitOps - how to generate manifests in CI step and apply in CD step?

I'm learning CICD with ArgoCD and Argo Workflows, and I want to set up a system for devs where they can deploy new apps just by providing a link to a repository.

The workflow I have in mind is:

1. Build an image for the code and push it to a registry
2. Generate manifest files for a new deployment
3. Push the files to the ArgoCD repository.
4. Let ArgoCD reconcile the manifests and deploy the app.

What I'm not sure about is how to proceed with steps 2 and 3. I've searched a lot and found many examples for updating an image tag in an existing manifest with things like ArgoCD image updater, but nothing about adding new manifests

What would be the best way to do this? Am I supposed to have the workflow commit the manifests to git? Something like this?

- name: Prepare Kubernetes manifests
run: |
# Example: Dynamically creating a Helm values file if it doesn't exist
if ! -f "chart/${{ matrix.app }}/values.yaml" ; then
echo "image: myregistry/${{ matrix.app }}:${{ github.sha }}" > chart/${{ matrix.app }}/values.yaml
fi


- name: Commit and push changes
run: |
git config user.name 'GitHub Actions'
git config user.email '[email protected]'
git add .
git commit -m "Deploying new version of ${{ matrix.app }} - ${{ github.sha }}"
git push



https://redd.it/1chsprc
@r_devops
DevOps School Encourages To Fake Experience

Hello, there is a DevOps school in Chicagoland that encourages the students to fake their experience I mean they literally tell you to pick a company and add 5-8 years of fake experience. They have a fake staffing company with the backup numbers in case when the companies are trying to verify the experience. Are there any ways to stop this nonsense?
Don't get me wrong but it creates a lot of unfair condition to the people who just starting in devops or don't want to fake on their resumes.

https://redd.it/1chsftc
@r_devops