You are viewing an old version of this page. View the current version.

    Compare with Current View Page History

    « Previous Version 2 Next »

    When you don't have a dedicated compute farm, it is often necessary to enlist existing machines into part-time service. So the hosts might be available for computing say at night, but not during the day. It can be quite inconvenient to start and stop the Qube Worker every day. It would be better if there were a way to simply tag Workers as available or not, depending upon the circumstances.

    Qube manages this tagging through a system of "locks" that effectively control the number of available subjob slots on any Worker host. Closing out one or more subjob slots is called "locking." This is controllable from either the QubeGUI or the commandline calls to qblock and qbunlock.

    Locking/Unlocking with the Qube WranglerView

    In the QubeGUI, the Host Layout provides locking/unlocking capabilities for the Workers. Right-click on a Worker or Workers and then select one of the following:

    • Lock all: Locks all Worker process slots
    • Unlock all: Unlocks all Worker process slots
    • Lock/Unlock: Specifies number of process slots that are available
    • Lock/Schedule: Pick on a weekly calendar the times that the Worker(s) should be locked or unlocked
    • Lock/Watchdog: Automatically lock and unlock the Worker based on interactive computer use [Windows only]

    If choosing one of the "Lock" options, decide if you want to "Purge running jobs" from the machine so it stops those processes immediately and then requeues them on other machines.

    Locking/Unlocking with the command-line utilities

    qblock and qbunlock can be used to lock and unlock one or more slots on the specified host(s):

    qblock host [host,…]

    qbunlock host [host,…]

    where host is a list of one more host names.

    A --all flag can be used in place of the hostname.  When using the --all flag, only hosts which match the other criteria are operated upon: 

    qblock --all

    qblock --cluster /myCluster --all 

    qbunlock --active --all 

    By default, qblock locks out all of the subjob slots on the host, but you can also quantify the number of slots to lock or unlock:

    qblock --range rangespec host

    where rangespec is either a slot number, a comma-delimited list of slots, a range or some combination.

    Example:

    qblock myhost

    qblock --range 0, 1 sb005

    For more information see the qblock and qbunlock sections in the Commandline Reference section of the Qube Users Guide or using the "--help" option to qblock/qbunlock.

    • No labels