【问题标题】:Parameter group changes not reflecting on Aurora Serverless DB cluster参数组更改未反映在 Aurora Serverless 数据库集群上
【发布时间】:2020-01-07 11:47:00
【问题描述】:

我正在尝试将我的 Aurora mysql 5.6.10(启用数据 API)实例中的 binlog_format 参数更新为 ROW,但我无法更改它.

我已经相应地更新了我的自定义参数组,但是当我运行 show variables like 'binlog_format' 时,这些更改不会反映在集群上。

  • 更改参数组后,集群立即进入Modifying 状态,但完成后参数尚未更新。
  • 我似乎在 AWS UI 上找不到重启或停止集群的选项。
  • 使用 CLI,尝试停止集群时出现此错误:An error occurred (InvalidDBClusterStateFault) when calling the StopDBCluster operation: Stop-db-cluster is not supported for these configurations
  • 尝试更改容量设置,但没有任何效果。

还有其他我想念的方法吗?

【问题讨论】:

  • 嗨 Luis,您还有什么想在这个问题中回答的吗?

标签: mysql amazon-web-services amazon-aurora


【解决方案1】:

您必须通过运行以下命令检查特定属性修改是否被无服务器引擎支持:

aws rds describe-db-cluster-parameters --db-cluster-parameter-group-name <param-group-name>

如果您阅读上述语句的输出,它会显示 SupportedEngineModes 的“已配置”:

       {
            "ParameterName": "binlog_format",
            "ParameterValue": "OFF",
            "Description": "Binary logging format for replication",
            "Source": "system",
            "ApplyType": "static",
            "DataType": "string",
            "AllowedValues": "ROW,STATEMENT,MIXED,OFF",
            "IsModifiable": true,
            "ApplyMethod": "pending-reboot",
            "SupportedEngineModes": [
                "provisioned"
            ]
        }

可修改参数的理想状态是这样的:

       {
            "ParameterName": "character_set_server",
            "Description": "The server's default character set.",
            "Source": "engine-default",
            "ApplyType": "dynamic",
            "DataType": "string",
            "AllowedValues": "big5,dec8,cp850,hp8,koi8r,latin1,latin2,swe7,ascii,ujis,sjis,hebrew,tis620,euckr,koi8u,gb2312,greek,cp1250,gbk,latin5,armscii8,utf8,ucs2,cp866,keybcs2,macce,macroman,cp852,latin7,utf8mb4,cp1251,utf16,cp1256,cp1257,utf32,binary,geostd8,cp932,eucjpms",
            "IsModifiable": true,
            "ApplyMethod": "pending-reboot",
            "SupportedEngineModes": [
                "provisioned",
                "serverless"
            ]
        },

【讨论】:

    【解决方案2】:

    Aurora 现在确实支持启动和停止 API,所以我很惊讶您无法使用它。

    https://aws.amazon.com/about-aws/whats-new/2018/09/amazon-aurora-stop-and-start/

    您可以尝试通过 CLI 使用它们吗?

    另外,如果您只想重新启动引擎以使参数更改流入,您只需要使用reboot-db-instance API。

    https://docs.aws.amazon.com/cli/latest/reference/rds/reboot-db-instance.html

    【讨论】:

    • reboot-db-instance 适用于数据库集群,对吗?我们正在寻找的是重新启动/重新启动无服务器数据库,以便参数更改可以流动。您可以轻松重启的数据库集群
    猜你喜欢
    • 1970-01-01
    • 2019-01-23
    • 1970-01-01
    • 2021-04-13
    • 2020-10-03
    • 2021-08-19
    • 1970-01-01
    • 2017-12-11
    • 1970-01-01
    相关资源
    最近更新 更多