DELHOSTS(3PVM)

πŸ“¦ version 3.4.6, in debian bookworm, ubuntu jammy

πŸ’– DELHOSTS(3PVM) β€” aka pvm_delhosts, the "bye bestie πŸ‘‹" button for your virtual machine

okay so this is from the PVM Version 3.4 manual, and it's literally the routine that removes computers from your virtual machine. it's giving "block and delete" but for hosts. no cap. πŸ¦‹


✨ NAME ✨

pvm_delhosts β€” Deletes hosts from the virtual machine. bye felicia πŸ’…


🌸 SYNOPSIS 🌸

C:

int info = pvm_delhosts( char **hosts, int nhost, int *infos )

Fortran:

call pvmfdelhost( host, info )

πŸŽ€ PARAMETERS πŸŽ€

  • hosts β€” An array of pointers to character strings containing the names of the machines to be deleted. so like, a whole lil squad of hostnames πŸ‘‘
  • nhost β€” Integer specifying the number of hosts to be deleted. yes bestie, you gotta tell it how many.
  • infos β€” Integer array of length nhost which contains the status code returned by the routine for the individual hosts. Values less than zero indicate an error. so each host gets its own lil report card πŸ“
  • host β€” Character string containing the name of the machine to be deleted. (this one's the Fortran single-host version, one at a time, main character energy)
  • info β€” Integer status code returned by the routine. Values less than nhost indicate partial failure, values less than 1 indicate total failure. 😭

πŸ’œ DESCRIPTION πŸ’œ

The routine pvm_delhosts deletes the computers pointed to in hosts from the existing configuration of computers making up the virtual machine. And listen β€” it is not subtle. All PVM processes and the pvmd running on these computers are killed as the computer is deleted. like, full ghosting. πŸ’€

If pvm_delhosts is successful, info will be nhost. Partial success is indicated by 1 <= info < nhost, and total failure by info < 1. The array infos can be checked to determine which host caused the error. so if one of them is being messy, you can literally point at it. πŸ”

The Fortran routine pvmfdelhost deletes a single host from the configuration with each call. one. at. a. time. no multitasking bestie 🧚

If a host fails, the PVM system will continue to function and will automatically delete this host from the virtual machine. An application can be notified of a host failure by calling pvm_notify. It is still the responsibility of the application developer to make his application tolerant of host failure. and that part is on YOU, not on PVM β€” don't forget it ✨


🌈 EXAMPLES 🌈

C:

static char *hosts[] = {
     "sparky",
     "thud.cs.utk.edu",
};
int status[2];
info = pvm_delhosts( hosts, 2, status );

Fortran:

CALL PVMFDELHOST( 'azure', INFO )

πŸ”₯ ERRORS πŸ”₯

These error conditions can be returned by pvm_delhosts:

  • PvmBadParam β€” giving an invalid argument value. bestie that input was not it πŸ™ˆ
  • PvmSysErr β€” local pvmd not responding. it's not answering your texts, lowkey a red flag 🚩

πŸ¦‹ SEE ALSO πŸ¦‹

  • pvm_addhosts(3PVM) β€” the add-bestie counterpart
  • pvm_notify(3PVM) β€” so you actually find out when a host dips

okay so real talk: deleting a host kills every PVM process and the pvmd on it. that's not a soft launch, that's a full send. make sure that's what you want πŸ’…

and that's the whole page, bestie!! this lil icon was documented way back on 30 August, 1993 (fr fr, ancient but still slaying) and it ships with PVM Version 3.4 β€” so when you're out here deleting hosts, just know the source and the date said so. periodt. πŸ‘‘πŸ’–

πŸ“¦ where this page comes from