All of lore.kernel.org
 help / color / mirror / Atom feed
* [Printing-architecture] CUPS: fail-over without load-balancing
@ 2014-07-16 10:32 Tim Waugh
  2014-07-16 15:07 ` Michael Sweet
  0 siblings, 1 reply; 4+ messages in thread
From: Tim Waugh @ 2014-07-16 10:32 UTC (permalink / raw)
  To: Open Printing

[-- Attachment #1: Type: text/plain, Size: 1192 bytes --]

Hello!

I'm investigating how to implement fail-over for CUPS, but without
having load-balancing as a side effect.

The usual way of implementing fail-over is simply to use classes, so
that printers are used round-robin fashion.

However, I'd like to implement fail-over as follows:

Each class will have one active printer accepting jobs, and a fail-over
printer not accepting jobs. When all is well, only the active printer
will be in use.

When the active printer fails, a daemon will spot this and start the
fail-over printer accepting jobs.

This is planned to be accomplished by having the daemon subscribe to
notifications. When it sees a notification that a printer has been
disabled due to a job failure, it will look for classes containing that
printer but no other accepting printers.

For each of these classes, it will look for a printer with a 'failover'
attribute and set it to accept queues. It will also move any jobs queued
for the failed printer over to the newly-accepting printer.

Does this sound like the best approach? Is it something that would be
best implemented as part of CUPS, or cups-filters, or a standalone
project?

Tim.
*/


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 465 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-02 11:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-07-16 10:32 [Printing-architecture] CUPS: fail-over without load-balancing Tim Waugh
2014-07-16 15:07 ` Michael Sweet
2014-09-18 20:07   ` Clark Hale
2014-10-02 11:43     ` Michael Sweet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.