0%

Jenkins环境搭建完成了,项目自动化编译打包也调通了,但是我们不能保证每次都是正常的,根据自己的情况(构建失败,构建状态不稳定)配置邮件通知是有必要的;这篇文章我采用腾讯qq邮箱来发送,使用公司邮箱来接收;

常用的几种方式

  • 使用内置的邮件插进(使用全局的配置,只能有一个接收方)
  • 使用邮件扩展插件【Email Extension Plugin】(使用全局的配置,能有多个接收方,但是只能有一个发送方)
  • 使用邮件扩展插件【Email Extension Plugin】+Groovy脚本(实现每个Job对应不同的发送邮件,多个发送方)
  • 开发邮件转发中间件或者使用Foxmail这些工具来转发(每个Job发送到对应的邮箱,然后中间件负责转发到成员列表的邮箱。对发送插件没什么要求,只要能发送即可)
    (这篇文章只说一下前两种方式)
    阅读全文 »

jenkins里新建了一个maven风格的项目,打包过程中找不到ojdbc的包,然后手动下载,加载到本地仓库中了,jenkins依然提示找不到这个包。

1
2
3
[ERROR] Failed to execute goal on project atmosphere: Could not resolve dependencies for project com.ths:atmosphere:war:0.0.1-SNAPSHOT: Failure to find com.oracle:ojdbc14:jar:10.2.0.4.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal on project atmosphere: Could not resolve dependencies for project com.ths:atmosphere:war:0.0.1-SNAPSHOT: Failure to find com.oracle:ojdbc14:jar:10.2.0.4.0 in https://repo.maven.apache.org/maven2 was cached in the local repository, resolution will not be reattempted until the update interval of central has elapsed or updates are forced
at org.apache.maven.lifecycle.internal.LifecycleDependencyResolver.getDependencies(LifecycleDependencyResolver.java:221)
阅读全文 »

故障现象1

Tomcat启动异常,卡在以下提示处

1
2
3
INFO: validateJarFile(/usr/local/apache-tomcat-7.0.79/webapps/thsbox/WEB-INF/lib/tomcat-servlet-api-8.5.15.jar) - jar not loaded. See Servlet Spec 3.0, section 10.7.2. Offending class: javax/servlet/Servlet.class
Aug 17, 2017 2:36:19 PM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
阅读全文 »

软件下载
https://downloads.hpdd.intel.com/public/lustre/
https://downloads.hpdd.intel.com/public/e2fsprogs/1.42.7.wc1/
http://mirror.symnds.com/software/zfsonlinux/repo/epel-testing/6/x86_64/ldiskfsprogs-1.42.7.wc1.3chaos-7.ch5.1.1.x86_64.rpm

查看lustre版本和操作系统对应关系参考:https://wiki.hpdd.intel.com/display/PUB/Lustre+Support+Matrix

2.4以后的版本支持多个mds
查看lustre版本
lctl get_param version

<未完待续>

参考文档:
http://www.google.com.pg/patents/CN102169448A?cl=zh
http://cdn.opensfs.org/wp-content/uploads/2014/10/6-LUG-Inspur-WWWrevised.pdf

https://www.huaweicloud.com/articles/b168f462b54fefd10af1c04ff194b2b2.html
https://blog.didiyun.com/index.php/2019/01/25/lustre/
https://chowdera.com/2021/04/20210417222148281c.html
https://wangmingjun.com/2018/06/13/%E8%99%9A%E6%8B%9F%E6%9C%BA%E6%90%AD%E5%BB%BAlustre%E6%96%87%E4%BB%B6%E7%B3%BB%E7%BB%9F/
http://hmli.ustc.edu.cn/doc/linux/lustre/
https://www.cnblogs.com/wasaier/p/14672229.html

Lustre是一款开源的,基于对象存储的集群并行分布式文件系统,具有很高的扩展性、可用性、易用性、性能等,在高性能计算中应用很广泛,世界十大超级计算中心当中的七个以及超过50%的全球top50超级计算机都在使用Lustre。可以支持上万个节点,数以PB的数量存储系统。从1999年lustre项目起,他的版权所有者就在不断的变换,从lustre项目组到Sun公司到Oracle再到Whamclound,最终被因特尔收购。

阅读全文 »

MHA(Master High Availability)目前在MySQL高可用方面是一个相对成熟的解决方案,它由日本DeNA公司youshimaton(现就职于Facebook公司)开发,是一套优秀的作为MySQL高可用性环境下故障切换和主从提升的高可用软件。在MySQL故障切换过程中,MHA能做到在0~30秒之内自动完成数据库的故障切换操作,并且在进行故障切换的过程中,MHA能在最大程度上保证数据的一致性,以达到真正意义上的高可用。

阅读全文 »

基础环境配置

iptables: disabled
selinux: disabled
|系统 |主机名 |IP地址 |角色 |
|CentOS 7.2 x64 |mysql_a |192.168.6.126 |Atlas代理服务 |
|CentOS 7.2 x64 |mysql_b |192.168.6.127 |Mysql主服务器 |
|CentOS 7.2 x64 |mysql_c |192.168.6.128 |Mysql 从服务器|

阅读全文 »

Centos7系统中将Mysql置换为Mariadb了;Mariadb是Mysql数据库被Oracle公司收购之后Mysql之前的开发者基于mysql开发的开源数据库,完全兼容mysql;更详细的纠葛请自行google。
Mysql的主从复制是指从服务器向主服务器索取二进制binlog文件,在从服务器上把日志文件重新执行,从而获取主服务器数据,保证从服务器和主服务器的数据保持同步。但由于是异步的复制,从服务器在一定程度上落后于主服务器,刚写入到主服务器上的数据可能服务在从服务器上查询得到。

阅读全文 »

Linux 平台下默认的下载工具是wget,可在慢速或不稳定的网络连接下保持健壮性,如果由于网络问题下载失败,它将继续重试,直到整个文件下载完成;但是wget不支持多线程下载,这里推荐一个axel,可实现对同一个文件建立多个连接,每个连接下载单独的文件片段以更快地完成下载,支持HTTP,HTTPS,FTP,FTPS协议;

阅读全文 »

软件环境

CentOS 7.2 x64
parallel_studio_xe_2013_update2_intel64.tgz
intel_eval.lic

安装

安装依赖环境

1
[root@vm00 ~]# yum -y install libstdc++.so.5 gcc-c++

开始安装

1
2
3
[root@vm00 src]# tar xf parallel_studio_xe_2013_update2_intel64
[root@vm00 src]# cd parallel_studio_xe_2013_update2_intel64
[root@vm00 parallel_studio_xe_2013_update2_intel64]# ./install.sh
阅读全文 »