简体   繁体   English

从 AMI 移动到本地机器时如何备份/恢复 TRAINS 服务器

[英]How to Backup/Restore TRAINS-server when moving from AMI to local machine

I recently started using TRAINS, with the server in AWS AMI.我最近开始在 AWS AMI 中使用 TRAINS 和服务器。 We are currently using v0.9.0.我们目前使用的是 v0.9.0。

I would like to move the TRAINS-server to run on our on-premises kubernetes cluster.我想移动 TRAINS-server 以在我们的本地 kubernetes 集群上运行。 However, I don't want to lose the data on the current server in AWS (experiments, models, logins, etc...).但是,我不想丢失 AWS 中当前服务器上的数据(实验、模型、登录等...)。 Is there a way to backup the current server and restore it to the local server?有没有办法备份当前服务器并将其恢复到本地服务器?

Thanks!谢谢!

Since this package is quite new, I'm making sure we are both referring to the same one, TRAINS-server https://github.com/allegroai/trains-server (which I'm one of the maintainers)由于这个包很新,我确保我们都指的是同一个, TRAINS-server https://github.com/allegroai/trains-server (我是维护者之一)

Backup the persistent data folders in the TRAINS-server AMI distribution:备份TRAINS-server AMI 发行版中的持久数据文件夹:

  • MongoDB: /opt/trains/data/mongo/ MongoDB:/opt/trains/data/mongo/
  • ElasticSearch: /opt/trains/data/elastic/弹性搜索:/opt/trains/data/elastic/
  • File Server: /mnt/fileserver/文件服务器:/mnt/fileserver/

Once you have your Kubernetes cluster up, restore the three folders to a sharable location .启动 Kubernetes 集群后,将三个文件夹恢复到可共享的位置 When creating the TRAINS-server deployment yaml make sure you map the sharable location to the specific locations the container expects, eg /mnt/shared/trains/data/mongo:/opt/trains/data/mongo创建TRAINS-server部署 yaml 时,请确保将可共享位置映射到容器期望的特定位置,例如 /mnt/shared/trains/data/mongo:/opt/trains/data/mongo

Start the Kubernetes TRAINS-server , it should now have all the previous data/users etc.启动 Kubernetes TRAINS-server ,它现在应该拥有所有以前的数据/用户等。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM