AWSNeptune(db.r5.large)无法处理超过250个请求/秒。
创始人
2024-09-26 16:01:52
0

可以使用AWS Neptune负载平衡器来解决性能瓶颈。例如,可以通过使用Amazon Elastic Load Balancer(ELB)来分发负载并管理访问AWS Neptune。以下是使用AWS Neptune负载平衡器的代码示例:

resource "aws_lb_target_group" "neptune" {
  name_prefix      = "neptune-tg"
  port             = 8182
  protocol         = "TCP"
  vpc_id           = "${var.vpc_id}"
  deregistration_delay = 30

  health_check {
    interval            = 30
    path                = "/"
    port                = "8182"
    protocol            = "TCP"
    timeout             = 5
    unhealthy_threshold = 2
  }
}

resource "aws_lb" "neptune" {
  name               = "neptune-lb"
  internal           = false
  load_balancer_type = "application"

  subnets            = "${var.subnet_ids}"
  security_groups    = ["${aws_security_group.neptune.id}"]

  access_logs {
    bucket = "${var.log_bucket}"
  }

  tags = {
    Terraform   = "true"
  }
}

resource "aws_lb_listener" "neptune" {
  load_balancer_arn = "${aws_lb.neptune.arn}"
  port              = "8182"
  protocol          = "TCP"
  default_action {
    type = "forward"
    target_group_arn = "${aws_lb_target_group.neptune.arn}"
  }
}

resource "aws_lb_target_group_attachment" "neptune" {
  target_group_arn = "${aws_lb_target_group.neptune.arn}"
  target_id        = "${aws Neptune.r5.large_instance.id}"
  port             = "8182"
}

相关内容

热门资讯

透视开挂!哈糖大菠萝免费辅助器... 透视开挂!哈糖大菠萝免费辅助器(透视)hhpoker到底可以透视码,教程方案(有挂讲解)-哔哩哔哩哈...
aapoker公共底牌!wep... aapoker公共底牌!wepoker有没有透视方法(透视)教程-总是有挂是真的挂1、进入游戏-大厅...
透视曝光!wepoker透视脚... 透视曝光!wepoker透视脚本免费下载(透视)wepoker有透视底牌吗,教程技法(有挂攻略)-哔...
wepoker辅助器安装包!w... wepoker辅助器安装包!wejoker免费脚本(透视)方法-确实教你真的有挂;1、用户打开应用后...
透视了解!wpk透视辅助方法(... 透视了解!wpk透视辅助方法(透视)poker world辅助器,教程方式(有挂教程)-哔哩哔哩wp...
德州私人局脚本!wepoker... 德州私人局脚本!wepoker新号好一点吗(透视)插件-切实推荐是有挂1、wepoker新号好一点吗...
透视推荐!德普之星透视辅助软件... 透视推荐!德普之星透视辅助软件下载(透视)德普之星辅助工具如何打开,教程资料(有挂方略)-哔哩哔哩一...
hhpoker有透视的吗!wp... hhpoker有透视的吗!wpk辅助插件(透视)技巧-切实教你存在有挂运hhpoker有透视的吗辅助...
透视揭幕!epoker免费透视... 透视揭幕!epoker免费透视脚本(透视)wepoker祈福有用吗,教程指引(真的有挂)-哔哩哔哩1...
wepoker辅助插件功能!w... wepoker辅助插件功能!wepoker辅助器激活码(透视)教程-确实专业是真的挂1、任何wepo...