Open in app

Sign in

Write

Sign in

CocCoc Techblog
CocCoc Techblog

76 Followers

Home

About

Apr 5, 2022

Finer permission control using K8s Admission Controller

Situation In our company, the whole company is using only one unified K8s cluster, and department services are separated by namespaces with different service accounts. Developers have the same set of permissions on corresponding namespace, basically only describe / logs to debug their own services. …

Kubernetes

4 min read

Finer permission control using K8s Admission Controller
Finer permission control using K8s Admission Controller
Kubernetes

4 min read


Published in

Coccoc Engineering Blog

·Dec 30, 2021

From Log-Structured Merge-Tree storage engine to a toy database

Preface We’ve heard of Log-Structured Merge-Tree (LSMTree) for many times recently, when many high scalable NoSQLs are gaining popularity such as Cassandra, HBase, LevelDB, Elasticsearch… We may have a very brief idea on how they work under the hood theoretically, but we haven’t touch that in depth. …

Cassandra

8 min read

From Log-Structured Merge-Tree storage engine to a toy database
From Log-Structured Merge-Tree storage engine to a toy database
Cassandra

8 min read


Published in

Coccoc Engineering Blog

·Sep 30, 2021

Webserver’s Concurency Models in Python

In the very beginning, I was wondering how a webserver works, how mighty Apache — extremely dominating in the market at that time — was struggling with high traffic environments, how Nginx’s event-driven architecture beautifully solved C10K problem, and long after, how NodeJS got the community hype. …

Computer Science

10 min read

Webserver’s Concurency Models in Python
Webserver’s Concurency Models in Python
Computer Science

10 min read


Published in

Coccoc Engineering Blog

·Jun 21, 2021

The Redis Stories

We’ve probably heard of, or even used Redis quite frequently as part of our infrastructure. Redis is everywhere, which can be a caching layer, a message queue, or even a memory database, whatever it is, performance is always the main objective of using Redis. In Coccoc infrastructure, Redis has being…

DevOps

10 min read

The Redis Stories
The Redis Stories
DevOps

10 min read


Published in

Coccoc Engineering Blog

·Mar 28, 2021

Distributed Computing: Paxos Algorithm (Part 2)

Foreword In the previous blogpost, we’ve discussed the neediness of consensus protocol in the distributed computing era and the most commonly known 2-phase-commit algorithm. …

Computer Science

5 min read

Distributed Computing: Paxos Algorithm (Part 2)
Distributed Computing: Paxos Algorithm (Part 2)
Computer Science

5 min read


Published in

Coccoc Engineering Blog

·Jan 7, 2021

Distributed Computing: Consensus Protocol (Part 1)

Foreword You may have heard of Transaction — which is very important feature to maintain atomicity of the database. For those who dont know, atomicity guarantees updates to the database either all occur, or nothing occurs. On a single node database, transaction is usually implemented by the storage engine, using a…

Consensus Algorithm

4 min read

Distributed Computing: Consensus Protocol (Part 1)
Distributed Computing: Consensus Protocol (Part 1)
Consensus Algorithm

4 min read


Published in

The Startup

·Nov 19, 2020

Linux Zero-Copy Using sendfile()

Why Zero-copy? What’s happening under the hood when the OS is copying a file / transfering a file to another host? For our naked eyes the process can be simple, OS first reads content of the file, then writes it to another file, then it’s done! However, things become complicated when we…

Linux

4 min read

Linux Zero-Copy Using sendfile()
Linux Zero-Copy Using sendfile()
Linux

4 min read


Published in

Coccoc Engineering Blog

·Sep 25, 2020

Adding authorization to a running Kafka cluster

We have several Kafka clusters of growing importance at CocCoc. As usage scales up, we would like to get a handle on the dataflow components. We decided to enforce producer/consumer ACLs on them to ensure data provenance, using Kafka built-in Authorizer which stores settings in Zookeeper. Starting points Kafka cluster with PLAINTEXT…

Kafka

6 min read

Adding authorization to a running Kafka cluster
Adding authorization to a running Kafka cluster
Kafka

6 min read


Published in

Coccoc Engineering Blog

·Jul 2, 2020

The way of KVM: guest’s CPU flags

Coccoc uses KVM (Kernel-based Virtual Machine) virtualization infrastructure as a private cloud solution, and improving its performance and stability is always a challenging yet exciting task. In this blogpost, we will go through a brief description of cpu flags, and see how a little tweak on CPU flags can improve…

Kvm

6 min read

Kvm

6 min read


Published in

Coccoc Engineering Blog

·Jun 23, 2020

Load-balancing for K8s services in Coccoc Infrastructure

Preface For a very long time, the infrastructure at Coccoc only supports traditional services running on physical hosts. Recently on the rise of microservices, the trendy container orchestration technology K8s has been adapted as a big part of the grand design. Therefore, the infrastructure also needs a huge shift to not…

Kubernetes

5 min read

Load-balancing for K8s services in Coccoc Infrastructure
Load-balancing for K8s services in Coccoc Infrastructure
Kubernetes

5 min read

CocCoc Techblog

CocCoc Techblog

76 Followers

From engineers who’re devoting their time to the Vietnamese browser and search engine.

Following
  • Netflix Technology Blog

    Netflix Technology Blog

  • Pinterest Engineering

    Pinterest Engineering

  • Tungdam

    Tungdam

  • VU Minh Quan

    VU Minh Quan

See all (10)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams