Shunt listing screen (8.x-2.x)
Shunt Drush commands (8.x-2.x)

About

"In electronics, a shunt is a device which allows electric current to pass around another point in the circuit by creating a low resistance path."
- source: Wikipedia: Shunt (Electrical)

Shunt module provides a facility for developers to create virtual "shunts" that site administrators can trip in emergency situations, instructing Drupal to fail gracefully where functionality depends on them.

For example, you might create a shunt that disables certain expensive database operations, so that in case of an overwhelming traffic event like a denial of service (DOS) attack you have a way of both reducing load on the server and saving legitimate users the frustration of getting white screens or losing form submissions.

This is an API module. It doesn't do anything by itself. Rather, it provides module developers the ability to define shunts and make functionality dependant on them, and it gives site administrators the ability to enable and disable said shunts via the web UI or Drush.

Please see the included README for detailed usage instructions.

Contributing

Anyone is encouraged to contribute to this project.

By contributing to this project, you grant a world-wide, royalty-free, perpetual, irrevocable, non-exclusive, transferable license to all users under the terms of the Gnu General Public License v2 or later.

All comments, messages, pull requests, and other submissions received through official White House pages including this Drupal.org page are subject to the Presidential Records Act and may be archived.
Learn more http://WhiteHouse.gov/privacy

License

This project constitutes a work of the United States Government and is not subject to domestic copyright protection under 17 USC § 105.

The project utilizes code licensed under the terms of the GNU General Public License and therefore is licensed under GPL v2 or later.

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public
License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

Project information

Releases