Category: DevOps

  • Deploy Sharded MongoDB Cluster on Ubuntu 22.04

    On Ubuntu 22.04, to set up a MongoDB cluster, you must first install MongoDB on each node in the cluster. While you can use the apt-get command to install MongoDB, the default version available in Ubuntu’s official package repositories may be outdated. To ensure you’re using the latest version, install MongoDB directly from the official…

  • Fixing Git:git@gitlab.com: Permission denied(publicly) with VSCODE on macOS

    Recently, I switched my gitlab repository from https authorization to ssh authorization. When I was generating the ssh key. I set a passphrase. And with the newer version of macOS, on default the ssh agent might not be able to auto remember this passphrase which could lead to an error when using the integrated version…

  • Kafka Partition, Explained-(What is Kafka Partition)

    Partition plays a core role in Kafka, it affects Kafka’s storage structure and the way Kafka produce and consume messages. It’s very important for us to fully understand the partition before we do a deep dive into the Kafka. In this article, I will show the concept, structure and the role it plays in Kafka.…

  • Obtain Ubuntu Server Raid Information And Data Restoration

    Introduction Nowadays, there are many servers using Ubuntu Server as the operation system. And in production environment, it’s very important for the developers to set up the servers with raid configuration to speed up the disk IO and provide data protection. Mostly, for our developers, we are not the ones to set up the servers.…