symsensor/actuator-doctrine-bundle
Composer 安装命令:
composer require symsensor/actuator-doctrine-bundle
包简介
Extension to monitor the doctrine connection for the actuator bundle
关键字:
README 文档
README
ActuatorDoctrineBundle extends ActuatorBundle by providing health indicator and information collector for doctrine.
Installation
Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.
Applications that use Symfony Flex
Open a command console, enter your project directory and execute:
$ composer require symsensor/actuator-doctrine-bundle
Applications that don't use Symfony Flex
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
$ composer require symsensor/actuator-doctrine-bundle
Step 2: Enable the Bundle
Then, enable the bundle by adding it to the list of registered bundles
in the config/bundles.php file of your project:
// config/bundles.php return [ // ... SymSensor\ActuatorBundle\SymSensorActuatorDoctrineBundle::class => ['all' => true], ];
Configuration
The Bundle can be configured with a configuration file named config/packages/sym_sensor_actuator.yaml. Following snippet shows the default value for all configurations:
sym_sensor_actuator_doctrine: connections: default: service: doctrine.dbal.default_connection check_sql: SELECT 1 migrations: enabled: true check_unavailable: true report_unavailable_as_down: false
Following table outlines the configuration:
| key | default | description |
|---|---|---|
| sym_sensor_actuator_doctrine.connections | Array | Contains a list of names, where each represents an connection to e database. The name itself can be chosen at will |
sym_sensor_actuator_doctrine.connections.name.enabled |
true | If the connection associated with this name should monitored |
sym_sensor_actuator_doctrine.connections.name.service |
'Doctrine\DBAL\Connection' | The service name inside the dependency injection container. You can lookup your connection name with bin/console debug:container |
sym_sensor_actuator_doctrine.connections.name.check_sql |
'Select 1' | The SQL which will be executed to determine if the database is up. The response will be ignored, it only matters if the sql can be executed without error. If you set this to ~ it will only check if a connection to the database can be established |
| sym_sensor_actuator_doctrine.migrations.enabled | true | If the migration check should be enabled in health / info endpoint |
| sym_sensor_actuator_doctrine.migrations.check_unavailable | true | If the health endpoint should check the unavailable migrations |
| sym_sensor_actuator_doctrine.migrations.report_unavailable_as_down | false | If unavailable migrations should count as unknown or down |
License
ActuatorBundle is released under the MIT Licence. See the bundled LICENSE file for details.
Author
Originally developed by Arkadiusz Kondas
symsensor/actuator-doctrine-bundle 适用场景与选型建议
symsensor/actuator-doctrine-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 15.98k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2023 年 08 月 08 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「actuator」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 symsensor/actuator-doctrine-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 symsensor/actuator-doctrine-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 symsensor/actuator-doctrine-bundle 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
PHP port of Spring Actuator which provides an easy health checking capability of services.
Silex Provider for php-actuator
Extensible bundle to provide runtime health or information about a deployed application
Production-ready features for your Symfony application
Extension for the ActuatorBundle which provides health checking capabilities for the symfony mailer component.
Extension for the ActuatorBundle which provides health checking capabilities for maintenance modes.
统计信息
- 总下载量: 15.98k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 16
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-08-08
