首页
学习
活动
专区
工具
TVP
发布

sktj

专栏作者
1542
文章
1902907
阅读量
34
订阅数
ceph设计原理与实现(RGW、CephFS、实战)
1、侠义讲,对象存储就是云存储 2、分布式文件系统:CephFS 3、每天晚上10点到早上7点Scrub ceph tell osd.* injectargs "--osd-scrub-begin-hour 22" ceph tell osd.* injectargs "--osd-scrub-end-hour 7" vi /etc/ceph/ceph.conf [osd] osd_scrub_begin_hour = 22 osd_scrub_end_hour = 7 4、ceph数据重建配置策略 //提升recovery的优先级,降低client的优先级 ceph tell osd.* injectargs "--osd-recovery-op-priority 63" ceph tell osd.* injectargs "--osd-client-op-priority 3" //等recovery完成, ceph tell osd.* injectargs "--osd-recovery-op-priority 3" ceph tell osd.* injectargs "--osd-client-op-priority 63" //永久性修改优先级 /etc/ceph/ceph.conf
用户5760343
2022-05-18
5920
Django2.0中文(通用视图)
1、通用视图 urls.py: from django.views.generic import TemplateView path(r'about/',TemplateView.as_view(template_name="about.html")), 2、通用视图 about.html xx/templates/about.html
用户5760343
2022-05-14
7010
python 回归测试脚本
""" ################################################################################ Test a directory of Python scripts, passing command-line arguments, piping in stdin, and capturing stdout, stderr, and exit status to detect failures and regressions from prior run outputs. The subprocess module spawns and controls streams (much like os.popen3 in Python 2.X), and is cross-platform. Streams are always binary bytes in subprocess. Test inputs, args, outputs, and errors map to files in subdirectories.
用户5760343
2022-05-13
7450
python concurrent.futures
1/ concurrent.futures模块 线程池:concurrent.futures.ThreadPoolExecutor(max_workers) 进程池:concurrent.futures.ProcessPoolExecutor(max_workers) 2、使用对比:进程的性能更好 import concurrent.futures import time number_list = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
用户5760343
2022-05-13
1830
python pycuda进行GPU编程(并行编程 38)
CPU是被设计用来处理复杂任务的,而GPU只能做好一件事-处理百万级的低级任务(原来是被用来生成3D图形中的三角形),而且GPU有上千个ALU(算术逻辑单元),而CPU通常只有8个。而且很多程序大部分时间都花在GPU擅长的简单运算上了,所以GPU加速程序很有必要。 CUDA编程有越来越复杂的趋势,但pyCUDA则大大简化了这个过程,并且拥有GPU加速的享受,所以面向GPU的高级编程正逐渐成为主流。 GPU内部图:
用户5760343
2019-07-30
2.5K0
没有更多了
社区活动
RAG七天入门训练营
鹅厂大牛手把手带你上手实战
Python精品学习库
代码在线跑,知识轻松学
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档