Skip to content

sleep-forever is a fully-engaged polling thing #900

@bezio

Description

@bezio

Proposal

Just encountered that in build/ps-entrypoint.sh the sleep-forever/$recovery_file loop is a full-fledged polling loop.

`--- a/build/ps-entrypoint.sh
+++ b/build/ps-entrypoint.sh
@@ -428,6 +428,7 @@ if [ -f "${recovery_file}" ]; then
if [ ! -f "${recovery_file}" ]; then
exit 0
fi

  •           sleep 0.5 # Prevent full polling mode - just wasted cpu-cycles
      done
    

fi`

☝ should easily fix this.

Use-Case

Preventing hot-cpu cores when recovering a broken group-replication

Is this a feature you are interested in implementing yourself?

Yes

Anything else?

Else: Keep up the good work!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions