Ignore:
Timestamp:
Oct 7, 2009, 3:24:47 AM (15 years ago)
Author:
adehnert
Message:

Balance LVM requests (LP: #307361)

  • Add "monocast" method to send remctl requests to exactly one

randomly-selected host.

  • Send LVM requests to randomly-selected host for redundancy and load-balancing (LP: #307361).
Location:
trunk/packages/invirt-remote
Files:
2 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/packages/invirt-remote/debian/changelog

    r2476 r2495  
     1invirt-remote (0.4.2) unstable; urgency=low
     2
     3  * Add "monocast" method to send remctl requests to exactly one
     4    randomly-selected host.
     5  * Send LVM requests to randomly-selected host for redundancy and
     6    load-balancing (LP: #307361).
     7
     8 -- Alex Dehnert <adehnert@mit.edu>  Wed, 07 Oct 2009 03:19:30 -0400
     9
    110invirt-remote (0.4.1) unstable; urgency=low
    211
  • trunk/packages/invirt-remote/python/remote/__init__.py

    r1822 r2495  
    11from bcast import bcast
     2from monocast import monocast
  • trunk/packages/invirt-remote/server/usr/sbin/invirt-remote-proxy

    r2292 r2495  
    1 #!/bin/bash
    2 # invoke as invirt-remote-proxy-$TYPE, with "TYPE" in the remctl sense.
     1#!/bin/bash                                                                                         
     2# invoke as invirt-remote-proxy-$TYPE, with "TYPE" in the remctl sense.                             
    33
    44klist -s || kinit -k
     
    77case "$TYPE" in
    88    control )
    9         MACHINE="$1"; SERVICE="$2"; shift; shift ;;
     9        MACHINE="$1"; SERVICE="$2"; shift; shift ;;
    1010    * )
    11         SERVICE="$1"; shift ;;
     11        SERVICE="$1"; shift ;;
    1212esac
    1313
    1414case "$TYPE/$SERVICE" in
    1515    web/listvms )
    16         invirt-remote-listvms "$@" ;;
     16        invirt-remote-listvms "$@" ;;
    1717    web/vnccert )
    1818        invirt-remote-vnccert "$@" ;;
     
    2020        invirt-remote-availability "$@" ;;
    2121    web/lvcreate | web/lvremove | web/lvrename | web/lvresize )
    22         if [ -f "/etc/invirt/nolvm" ]; then
    23             echo "LVM operations are temporarily disabled for maintenance, sorry." >&2
    24             exit 2
    25         fi
    26         remctl "$(invirt-getconf hosts.0.hostname)" remote "$TYPE" "$SERVICE" "$@" ;;
     22        invirt-remote-lvm "$SERVICE" "$@"
     23        ;;
    2724    control/help )
    2825        invirt-remctl-help ;;
     
    3229            exit 2
    3330        fi
    34         invirt-remote-create "$SERVICE" "$MACHINE" "$@" ;;
     31        invirt-remote-create "$SERVICE" "$MACHINE" "$@" ;;
    3532    control/listhost|control/list-host )
    36         invirt-remote-listhost "$MACHINE" "$@" ;;
     33        invirt-remote-listhost "$MACHINE" "$@" ;;
    3734    control/* )
    38         # Everything but create must go where the VM is already running.
    39         invirt-remote-control "$MACHINE" "$SERVICE" "$@" ;;
     35        # Everything but create must go where the VM is already running.
     36        invirt-remote-control "$MACHINE" "$SERVICE" "$@" ;;
    4037    * )
    41         echo "ERROR: invalid subcommand"
     38        echo "ERROR: invalid subcommand $TYPE/$SERVICE"
    4239        exit 34
    4340        ;;
Note: See TracChangeset for help on using the changeset viewer.