当前位置:网站首页>专属资源池使用最佳实践-依赖服务使用简介
专属资源池使用最佳实践-依赖服务使用简介
2022-07-16 18:46:00 【华为云】
镜像仓库使用
swr服务简介
容器镜像服务(SoftWare Repository for Container,简称SWR)是一种支持镜像全生命周期管理的服务。通过该服务可快速享有云上的镜像安全托管及高效分发服务,并且可配合云容器引擎 CCE、云容器实例 CCI使用,获得容器上云的顺畅体验。
详细文档介绍参考:https://support.huaweicloud.com/productdesc-swr/swr_03_0001.html
实用步骤
创建组织
进入swr服务再选定region。北京四的页面如:https://console.huaweicloud.com/swr/?region=cn-north-4#/app/dashboard
然后按下图操作创建组织

登陆镜像仓库
按下图操作获取登陆指令

按下图操作获取下载命令,或联系相关人员直接获取

在linux服务器上,安装docker软件后,直接载命令行输入对应登陆指令即可登陆,之后再输入下载指令即可下载容器镜像到本地。
镜像改名及上传,其中“${}”为可变量。
docker tag ${image_name}:${image_version} swr.cn-north-4.myhuaweicloud.com/${organization_name}/${image_name}:${image_version} docker push swr.cn-north-4.myhuaweicloud.com/${organization_name}/${image_name}:${image_version} |
其他容器镜像构建及调试操作
参考文档:https://bbs.huaweicloud.com/blogs/285590
共享硬盘使用
ECS服务介绍:https://support.huaweicloud.com/productdesc-ecs/zh-cn_topic_0013771112.html
SFS服务介绍:https://support.huaweicloud.com/productdesc-sfs/zh-cn_topic_0034428718.html
ECS节点挂载硬盘
前提条件:
1.ECS节点和SFS的共享硬盘在相同的VPC或者对应VPC能够互联
2.ECS节点安装了NFS客户端
操作步骤:
设置华为云镜像源
sudo sed -i "[email protected]://.*[email protected]://[email protected]" /etc/apt/sources.list sudo sed -i "[email protected]://.*[email protected]://[email protected]" /etc/apt/sources.list |
安装NFS客户端,挂载对应盘
sudo apt-get update sudo apt-get install nfs-common |
获取挂载命令,并挂载NFS存储


首先保证对应目录存在,然后输入对应指令即可。命令参考:
mkdir -p /mnt/sfs_turbo mount -t nfs -o vers=3,nolock 192.168.0.169:/ /mnt/sfs_turbo |
专属资源池初始化
专属资源池(老版)
初始化开发环境

配置NAS VPC
进入资源池详情页,然后按图所示配置打通。如果出现异常或错误,请通过工单解决。

专属资源池(老版)
首先创建网络,然后再购买资源池并配置是否可用“训练”或“开发环境”。
细节待补充。
创建训练作业
创建训练作业(旧版)
进入ModelArts服务,并选定region。北京四链接如:https://console.huaweicloud.com/modelarts/?region=cn-north-4#/trainingJobs

配置训练作业参数,重点关注:镜像id,启动命令,资源规格,挂载路径。其中挂载路径需要和启动命令匹配。
详细配置可以参考截图:

创建训练作业(新版)
进入ModelArts服务,并选定region。北京四链接如:https://console.huaweicloud.com/modelarts/?region=cn-north-4#/training

配置训练作业参数,重点关注:镜像id,启动命令,资源规格,挂载路径。其中挂载路径需要和启动命令匹配。
详细配置可以参考截图:

查看作业详情
先打开列表,选择需要的任务。

选择对应版本(默认选择最新版本)

在“日志”、“资源占用情况”子页签分别查看日志信息和各节点的CPU、GPU利用率。多子节点时可以手动切换,界面如截图:

查看正在运行的作业列表
在作业列表页,按图片说明进行状态筛选即可

创建开发环境
创建Notebook
参考:https://support.huaweicloud.com/devtool-modelarts/devtool-modelarts_0004.html
注意资源池要选择专属资源池。
边栏推荐
- Hystrix deployment
- 专属资源池使用最佳实践-Notebook与训练任务联动
- [cloud native] Devops (IV): integrated sonar Qube
- R语言使用pcauchy函数生成柯西分布累积分布函数数据、使用plot函数可视化柯西分布累积分布函数数据(Cauchy distribution)
- Paddle crowdnet population density estimation
- Sql笔记
- Mathematical modeling does not know latex typesetting | it teaches you how to use beautiful latex formulas gracefully in word
- Unity about some possible reasons and solutions for using addforce of rigidbody but it doesn't work
- [C language brush leetcode] 2155 All subscripts with the highest score in the group (m)
- Sword finger offer 55 - I. depth of binary tree
猜你喜欢

Stm32f407---- power management

剑指 Offer 53 - II. 0~n-1中缺失的数字

Daily question brushing record (XXV)

GD32F4(6):晶振引发串口乱码

Jenkins installation
![[JS encapsulates a simple asynchronous API to obtain asynchronous operation results and process parsing]](/img/98/fa6006639acfff1b49f47b9a64688e.png)
[JS encapsulates a simple asynchronous API to obtain asynchronous operation results and process parsing]

Opencv tutorial 02: core operations of opencv

Activate Navicat to prompt RSA public key not find

Paddle crowdnet population density estimation

Mathematical modeling - Classification Model (based on logistic regression)
随机推荐
Sword finger offer 55 - ii balanced binary tree
putchar()
华为云在线课堂AI技术领域课程“深度学习”学习心得体会---第二周
词云图,词频图,专门统计某些关键词的词云词频
关于#sql#的问题:orcale sql, 为什么MERCHANT table的外键inventory—id 语句是无效的
[C language brush leetcode] 134 Gas station (m)
Hystrix deployment
The University of Leuven recruited postdoctoral researchers to use ai/ml to analyze images of solar activity areas and predict flares
如何应对供应链中第三方的安全风险
Uniapp request request encapsulation method
World Tour Finals 2019 D - Distinct Boxes 题解
Mathematical modeling - Classification Model (based on logistic regression)
R language ggplot2 visualization: use the gghistogram function of ggpubr package to visualize the histogram, use the add parameter to add the mean dotted line, vertical line and horizontal axis to the
Unity-2D像素晶格化消融
图执行引擎那些事(一)
Skywalking's load balancing and automatic capacity expansion practice for grpc
Go language zero knowledge proof gnark framework
Sword finger offer 54 The k-th node of binary search tree
动态添加路由刷新页面会出现白屏
R语言使用data.table包对dataframe行数据进行排序(基于多字段、变量进行数据行排序,不重新排序实际的数据变化)、并计算排序后分组的累积加和值