GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — `feast serve`: /metrics stops responding after the first gunicorn worker exits (regression in 0.67.0, #6855) · Issue #7011 · feast-dev/feast Closed DescriptionCurrent behaviorSince 0.67.0 (#6855) the Prometheus metrics server runs in a From then on nothing listens on port 8000: Any Expected behaviorThe metrics server keeps running for the whole life of the gunicorn master, independent of worker restarts. Steps to reproduce
project: demo registry: data/registry.db provider: local online_store: type: sqlite path: data/online_store.db entity_key_serialization_version: 3 feature_server: metrics: enabled: true
pip install "feast==0.67.0" mkdir -p data && feast apply
feast serve --workers 1 --max-requests 3 --max-requests-jitter 0 > serve.log 2>&1 &
curl -s -m 5 -o /dev/null -w 'metrics before: %{http_code}\n' http://127.0.0.1:8000/metrics for i in 1 2 3 4 5; do curl -s -m 5 -o /dev/null -w "request $i: %{http_code}\n" http://127.0.0.1:6566/health; done sleep 3 curl -s -m 5 -o /dev/null -w 'metrics after: %{http_code}\n' http://127.0.0.1:8000/metrics grep -m1 "AssertionError: can only join a child process" serve.log Output with 0.67.0:
With The mechanism without Feast (plain Python 3.12; prints import multiprocessing as mp, os, sys, time def serve(): while True: time.sleep(1) if __name__ == "__main__": p = mp.Process(target=serve, daemon=True) # like start_metrics_server() in the gunicorn master p.start(); time.sleep(0.5) pid = os.fork() # like a gunicorn worker if pid == 0: sys.exit(0) # worker exit runs multiprocessing's atexit -> terminate(p) os.waitpid(pid, 0); time.sleep(0.5) print("metrics process alive:", p.is_alive()) # False Possible solutions
Environment
Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |