Skip to main content
Drupal is a registered trademark of Dries Buytaert
Release: Linkit 7.0.17 Minor update available for module linkit (7.0.17). Release: Paragraphs Editor Enhancements 10.2.0 Minor update available for module paragraphs_ee (10.2.0). Release: Paragraphs Editor Enhancements 10.1.1 Minor update available for module paragraphs_ee (10.1.1). Release: Trash 3.0.34 Minor update available for module trash (3.0.34). Release: Paragraphs Editor Enhancements 10.0.9 Minor update available for module paragraphs_ee (10.0.9). Release: Trash 3.1.0 Minor update available for module trash (3.1.0). Release: Paragraphs Sets 3.0.4 Minor update available for module paragraphs_sets (3.0.4). Release: Paragraphs Sets 3.1.0 Minor update available for module paragraphs_sets (3.1.0). Usage Milestone: Schemata Module schemata crossed 1,000 active installs. Module Revived: CVA (Class Variance Authority) 1.0.1 Module cva updated after 7 months of inactivity (1.0.1).

DKAN Automated Protection

No security coverage

Part of the Dkan ecosystem · 12 projects

View on drupal.org

This module is currently under development following the practice of Contrib First. It should be considered incomplete and under construction while in alpha release.

Features

The DKAN APIs allow users to query and filter datasets and provide a powerful tool for looking at public data. This power however has the potential to create some slow queries that tend to stack up. If the site is under significant bot or AI traffic, it is possible that the maximum number of allowed database connections may be exceeded. If that happens, the database goes away for all requests over that connection limit. Rather than let that happen arbitrarily, this module aims to dynamically activate the "Degraded service mode" already provided as a manual option as part of DKAN. This mode essentially limits the types of queries that can be made, to those that are not so complex or long running, while still allowing the site to function for most of its features.

Roadmap to MVP

  • UI
    • setting for number of max connections
    • setting for the % of max connections that should enable protected mode
    • setting to run this on cron or not
    • disable automated mode (so it can be turned off without disabling the module.
  • Write the status to a static json file when protected mode is enabled or disabled
    • Write the file on module install
    • Remove the file on module uninstall
  • Log when protected mode is enabled or disabled including the number of connections measured.
  • Drush commands
    • check-status to run the check (so an outside task runner could run the check). - return the status on run.
    • command to turn on or off the automated mode.

Requirements

This project requires the following modules:

Installation

Install as you would normally install a contributed Drupal module. For more information, see Installing Drupal Modules.

Using Composer:

composer require drupal/dkan_automated_protection

Post-Installation / Configuration

When this module is enabled, it provides settings for determining when or if it should enable DKAN's degraded service mode.

  1. Navigate to Administration > Configuration > System > DKAN Automated Protection (or the configured settings route once available).
  2. Configure thresholds for database connection monitoring and automatic degraded service mode activation.
  3. Save configuration.

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
1
Tracked since
Sep 2026
Latest release
1 hour ago
Releases (12 mo)
1 ▲ from 0
Maintenance
Active

Releases

Version Type Core Release date
1.0.x-dev Dev Sep 18, 2026