danielealbano / cachegrand

cachegrand - a modern data ingestion, processing and serving platform built for today's hardware
BSD 3-Clause "New" or "Revised" License
975 stars 34 forks source link

Improved worker fiber management and queue_mpmc concurrency issue fix #305

Closed danielealbano closed 1 year ago

danielealbano commented 1 year ago

This pull request introduces an enhanced mechanism for instantiating internal worker fibers that are independent of incoming connections. It migrates existing internal fibers to the new system, streamlines fiber entry points, and refines the logic for fiber list setup, initialization, and clean-up.

Furthermore, the PR addresses a concurrency issue with the queue_mpmc caused by elevated parallelism (e.g. 16 threads or more).