在kubernetes上运行geth [英] Running geth on kubernetes

查看:113
本文介绍了在kubernetes上运行geth的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行geth完整节点 https://github.com/ethereum/go -VM实例上Google Cloud平台上的-ethereum/wiki/geth .目前,我已经安装了SSD并将链式数据写入其中.

I am running geth full node https://github.com/ethereum/go-ethereum/wiki/geth on Google Cloud platform on a VM instance. Currently, I have mounted a SSD and write the chain data to it.

我现在想在多个VM实例上运行它,并使用负载平衡器来满足Dapp发出的请求.我可以使用普通的负载平衡器来执行此操作,并创建VM和自动扩展.但是,我有以下问题:

I want to now run it on multiple VM instances and use a load balancer for serving the requests made by Dapp. I can do this using a normal load balancer and create VMs and autoscale. However, I have the following questions:

  1. SSD似乎是区块链同步速度中非常重要的一部分.如果我只是创建VM映像并将其添加以进行自动缩放,那将无济于事,因为区块链需要花费一些时间进行同步.
  2. 如果我想在kubernetes集群上运行这些节点,那么使用磁盘的最佳方法是什么?

推荐答案

看一下此Kubernetes Engine教程,该教程向您展示了如何使用自动持久卷配置来运行StatefulSets:

Take a look at this Kubernetes Engine tutorial which shows you how to run StatefulSets with automatic persistent volume provisioning: https://cloud.google.com/kubernetes-engine/docs/how-to/stateful-apps

观看此Kubernetes Engine教程,该教程向您展示如何配置SSD磁盘 https://cloud.google.com/kubernetes-engine/docs/concepts/persistent-volumes#ssd_persistent_disks

Take a look at this Kubernetes Engine tutorial which shows you how to provision SSD disks https://cloud.google.com/kubernetes-engine/docs/concepts/persistent-volumes#ssd_persistent_disks

使用这些+ Horizo​​ntalPodAutoscaler,您应该能够创建具有自动缩放功能的StatefulSet,并且每个Pod都将获得自己的SSD磁盘.

With these + HorizontalPodAutoscaler, you should be able to create a StatefulSet with auto-scaling and each pod will get its own SSD disk.

这篇关于在kubernetes上运行geth的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆