定制 aoepeople/aoe_dbretry 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

aoepeople/aoe_dbretry

Composer 安装命令:

composer require aoepeople/aoe_dbretry

包简介

Magento DB adapter that will retry lost connections and deadlocks

README 文档

README

AOE

Aoe_DbRetry Magento Module Build Status

License

OSL v3.0

Contributors

Compatability

  • Module Dependencies
    • Mage_Core (implicit)

Description

This module is very simple and focus on one task. It replaces the DB adapter with an extended version that will retry queries if the connection is lost, the query cannot obtain a needed lock, or a deadlock occours. These three situations are detected via exception messages. The underlying (parent) code actually wraps at least one of these exceptions up inside another exception, so we check for that and unwrap the exception if needed.

Configuration

  • </app/etc/local.xml>/config/global/resources/{connection name}/connection/retries
    • {connection_name} is referring to the named connection, like 'default_setup' which is the default connection
    • Integer number between 0 and 5 that indicates how many times to retry the query
    • Default value is 5 retries
  • </app/etc/local.xml>/config/global/resources/{connection name}/connection/retry_power
    • {connection_name} is referring to the named connection, like 'default_setup' which is the default connection
    • Integer number between 1 and 5 that indicate the power of the exponential backoff feature
    • Default value is 2
    • Used in: {sleep seconds} = pow({try}, {retry_power})

NOTES

  • This module is currently being written for PHP 5.4+ and Magento CE 1.8+ support only.
  • When PHP 5.4 hits EOL, the minimum requirements will be updated to reflect this.

统计信息

  • 总下载量: 59k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 70
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 69
  • Watchers: 43
  • Forks: 15
  • 开发语言: PHP

其他信息

  • 授权协议: OSL-3.0
  • 更新时间: 2015-08-24