Skip to content
Just carry on website logo
  • Home
  • Misc
  • Notes
  • NGX
  • Favoman
  • Profile
  • Keepalived vrrp_script Weight vs Priority: Reading the C Source

    Keepalived vrrp_script Weight vs Priority: Reading the C Source

    Cole Avatar

    By

    Cole

    /

    18.04.2026

    If you have ever configured keepalived’s vrrp_script and been surprised by which node became master, this post is for you. The interaction between a script’s weight and a node’s base priority is subtle — and the keepalived documentation leaves many details underspecified. The only reliable reference is the source code. This post reads through it…

    Read More: Keepalived vrrp_script Weight vs Priority: Reading the C Source
  • How Nginx Processes a Request: Phase-by-Phase Source Analysis

    How Nginx Processes a Request: Phase-by-Phase Source Analysis

    Cole Avatar

    By

    Cole

    /

    18.04.2026

    Nginx is renowned for its performance, but its internal architecture is equally elegant. Every HTTP request passes through a defined sequence of 11 phases, each handled by registered handler modules. Understanding how nginx processes a request at the source level reveals why nginx is so fast, so configurable, and so extensible. This post walks through…

    Read More: How Nginx Processes a Request: Phase-by-Phase Source Analysis
  • Python Metaclass Deep Dive in CPython

    Python Metaclass Deep Dive in CPython

    Cole Avatar

    By

    Cole

    /

    18.04.2026

    Metaclasses are one of Python’s most powerful and most misunderstood features. The common explanation — ‘a metaclass is the class of a class’ — is technically correct but practically useless for understanding what actually happens when Python processes a class statement. This post does a real python metaclass deep dive by reading CPython’s type.__new__ implementation…

    Read More: Python Metaclass Deep Dive in CPython
  • How Python Coroutines Actually Work: Tracing __next__ and send()

    How Python Coroutines Actually Work: Tracing __next__ and send()

    Cole Avatar

    By

    Cole

    /

    18.04.2026

    Python coroutines look magical from the outside. You write async def, you await something, and somehow execution suspends and resumes. But there is no magic. Everything is implemented in CPython as an extension of generator objects — with a handful of bytecode instructions and a frame evaluation mechanism. This post traces the execution of a…

    Read More: How Python Coroutines Actually Work: Tracing __next__ and send()
  • Python asyncio Event Loop Internals: A Deep CPython

    Python asyncio Event Loop Internals: A Deep CPython

    Cole Avatar

    By

    Cole

    /

    18.04.2026

    If you have ever used Python’s asyncio library, you have interacted with one of the most sophisticated pieces of machinery in the standard library. But what is actually happening underneath the surface? How does the event loop know when a socket is ready to read? How does it decide which coroutine to run next? This…

    Read More: Python asyncio Event Loop Internals: A Deep CPython
  • Just Carry On

    Just Carry On

    Cole Avatar

    By

    Cole

    /

    17.04.2026

    Let me start with some Chinese characters. I’m setting up a website, hoping to consistently organize my several notebooks of source code reading notes.

    Read More: Just Carry On
  • Favoman’s Concluding Remarks

    Favoman’s Concluding Remarks

    Cole Avatar

    By

    Cole

    /

    17.04.2026

    The original intention was to create a tool to provide convenience for Weibo users, but due to limitations, it’s currently only suitable for personal use. The source code is open source.

    Read More: Favoman’s Concluding Remarks
←Prev
1 2 3 4
Next→

Editor Picks

  • Keepalived VRRP Failover in Production: Multi-Node Setup

    Keepalived VRRP Failover in Production: Multi-Node Setup

    April 18, 2026
  • Nginx Gzip + Character Encoding Edge Cases: Debugging

    Nginx Gzip + Character Encoding Edge Cases: Debugging

    April 18, 2026
  • Twisted Reactor Internals: How SelectReactor Schedules I/O Callbacks

    Twisted Reactor Internals: How SelectReactor Schedules I/O Callbacks

    April 18, 2026
  • Keepalived vrrp_script Weight vs Priority: Reading the C Source

    Keepalived vrrp_script Weight vs Priority: Reading the C Source

    April 18, 2026

Categories

  • Blog
  • Favoman
  • Internals
  • Misc
  • NGX
  • Notes
  • Systems
  • Workshop
Just carry on website logo
  • Facebook
  • X
  • Instagram
  • WordPress

Trending Posts

  • Nginx Reverse Proxy with Upstream Keepalive

    Nginx Reverse Proxy with Upstream Keepalive: Pitfalls and Fixes

    Apr 18, 2026
  • Keepalived VRRP Failover in Production

    Keepalived VRRP Failover in Production: Multi-Node Setup

    Apr 18, 2026
  • Nginx Gzip + Character Encoding Edge Cases

    Nginx Gzip + Character Encoding Edge Cases: Debugging

    Apr 18, 2026

Recent Posts

  • Nginx Reverse Proxy with Upstream Keepalive

    Nginx Reverse Proxy with Upstream Keepalive: Pitfalls and Fixes

    Apr 18, 2026
  • Keepalived VRRP Failover in Production

    Keepalived VRRP Failover in Production: Multi-Node Setup

    Apr 18, 2026
  • Nginx Gzip + Character Encoding Edge Cases

    Nginx Gzip + Character Encoding Edge Cases: Debugging

    Apr 18, 2026
  • Home
  • Misc
  • Notes
  • NGX
  • Favoman
  • Profile

© 2026 Just Carry On. All rights reserved.