slave

List of Slaves connected to master - Hudson

百般思念 提交于 2019-12-08 15:58:24
问题 Is there a way to find it programatically? I need this as part of an automated run; So this would be very helpful if there is an existing remote API call which can give this. 回答1: You don't need to parse the HTML - most of the Hudson pages can be turned into API calls by adding URL suffix, e.g. Make GET calls to: http://hudson:8080/computer/api/json switch the json for xml or python if you prefer over json if you use just the api suffix, you'll get a short generic help page on the api 回答2:

Which settings.xml is used by jenkins slave?

旧街凉风 提交于 2019-12-05 18:39:45
问题 I have a Jenkins master (running on a small Linux box) and a Jenkins slave (running on a "correct" XP machine). I have configured both for all jibs to be run on the Windows XP slave. Unfortunatly, each time a build is run on that slave, the build fails due to the following error : ERROR: Ignore Problem expanding maven opts macros org.jenkinsci.plugins.tokenmacro.TokenMacro Found mavenVersion 3.0.3 from file jar:file:/E:/java-ext/apache-maven-3.0.3/lib/maven-core-3.0.3.jar!/META-INF/maven/org

How to run SlaveOk in Mongoose?

前提是你 提交于 2019-12-04 22:12:56
How to call SlaveOK on query in Mongoose? for example, I have this: SiteModel.find({}, function(err, docs) { .... } ); Should I do this??? SiteModel.slaveOK().find({}, function(err,docs) { ... } ); Here's the official example from the Mongoose.js website: Model .where('age').gte(25) .where('tags').in(['movie', 'music', 'art']) .select('name', 'age', 'tags') .skip(20) .limit(10) .asc('age') .slaveOk() .hint({ age: 1, name: 1 }) .run(callback); So I guess your example above would probably work, but do it like so: Model.find(conditions).slaveOk().run(callback); mongoose.Query.slaveOk has been

Which settings.xml is used by jenkins slave?

孤者浪人 提交于 2019-12-04 02:50:31
I have a Jenkins master (running on a small Linux box) and a Jenkins slave (running on a "correct" XP machine). I have configured both for all jibs to be run on the Windows XP slave. Unfortunatly, each time a build is run on that slave, the build fails due to the following error : ERROR: Ignore Problem expanding maven opts macros org.jenkinsci.plugins.tokenmacro.TokenMacro Found mavenVersion 3.0.3 from file jar:file:/E:/java-ext/apache-maven-3.0.3/lib/maven-core-3.0.3.jar!/META-INF/maven/org.apache.maven/maven-core/pom.properties Parsing POMs ERROR: Echec à la lecture des POMs hudson.util

mysql replication - slave server on one database

╄→гoц情女王★ 提交于 2019-12-03 11:41:17
I couldn't find an answer to my question. I have 2 mysql servers. Master server Slave server Now i want to add another Slave server but i have other website running on that server. Can i replicate just one database? Frank Fang Yes you can If you want to replicate just one database from master, you can set replicate-do-db in your /etc/my.cnf or set replicate-do-db as mysql argument, for example: replicate-do-db=db01 If you have multi databases to be replicated, /etc/my.cnf should be like this: replicate-do-db=db01 replicate-do-db=db02 If you just want slave to ignore some database, you can set

Raspberry ALSA sound output / input slave

风格不统一 提交于 2019-12-01 21:18:56
I'm trying to set one device for playback and another one for capture, my nano /etc/asound.conf has this: pcm.!default { type asym playback.pcm "plughw:1,1" capture.pcm "plughw:1,0" } ctl.!default { type hw card 0 } I can play sound perfectly, but I cannot record sound, my python code is throwing this errors: ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side ALSA

Raspberry ALSA sound output / input slave

人盡茶涼 提交于 2019-12-01 21:04:31
问题 I'm trying to set one device for playback and another one for capture, my nano /etc/asound.conf has this: pcm.!default { type asym playback.pcm "plughw:1,1" capture.pcm "plughw:1,0" } ctl.!default { type hw card 0 } I can play sound perfectly, but I cannot record sound, my python code is throwing this errors: ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to open slave ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear ALSA lib pcm.c:2217:(snd_pcm_open_noupdate)

Reconfigure and reboot a Hudson/Jenkins slave as part of a build

柔情痞子 提交于 2019-11-30 10:51:02
问题 I have a Jenkins (Hudson) server setup that runs tests on a variety of slave machines. What I want to do is reconfigure the slave (using remote APIs), reboot the slave so that he changes take effect, then continue with the rest of the test. There are two hurdles that I've encountered so far: Once a Jenkins job begins to run on the slave, the slave cannot go down or break the network connection to the server otherwise Jenkins immediately fails the test. Normally, I would say this is completely

Redis复制(Replication)

北战南征 提交于 2019-11-29 03:40:00
概述 Redis 支持简单且易用的主从复制(master-slave replication)功能, 该功能可以让从服务器(slave server)成为主服务器(master server)的精确复制品。 以下是关于 Redis 复制功能的几个重要方面: Redis 使用异步复制。 从 Redis 2.8 开始, 从服务器会以每秒一次的频率向主服务器报告复制流(replication stream)的处理进度。 一个主服务器可以有多个从服务器。 不仅主服务器可以有从服务器, 从服务器也可以有自己的从服务器, 多个从服务器之间可以构成一个图状结构。 复制功能不会阻塞主服务器: 即使有一个或多个从服务器正在进行初次同步, 主服务器也可以继续处理命令请求。 复制功能也不会阻塞从服务器: 只要在 redis.conf 文件中进行了相应的设置, 即使从服务器正在进行初次同步, 服务器也可以使用旧版本的数据集来处理命令查询。 不过, 在从服务器删除旧版本数据集并载入新版本数据集的那段时间内, 连接请求会被阻塞。 你还可以配置从服务器, 让它在与主服务器之间的连接断开时, 向客户端发送一个错误。 复制功能可以单纯地用于数据冗余(data redundancy), 也可以通过让多个从服务器处理只读命令请求来提升扩展性(scalability): 比如说, 繁重的 SORT

Jenkins Error cloning remote repo 'origin', slave node

空扰寡人 提交于 2019-11-28 07:25:11
I need some help here, It's been a week I'm with this problem, can't figure out what's going on. I'm not able to clone a git repo from a slave node (Jenkins). I added the ssh key, host and slave (I've already tried generating a single key and one for each virtual and host)). On Jenkins: url:git@github.com: < repo> Credentials: Here I tried with username/password, username with ssh file, username with ssh key directly, and -none-. It doesn't seems like there is an authentication problem since I can clone the repo manually from console (both, slave and host). I can also connect with ssh -T git