cluster-computing

Deploying multiple Grails instances with shared cache and sessions?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 23:48:08
问题 I am looking for a solution that allows me to deploy multiple load balanced Grails instances that have shared cache (EhCache Server ?) and sessions, is this possible ? I can't find any documentation on this (connecting to a common EhCache server or using Distributed EhCache, and sharing sessions (using EhCache too ?))... I'm looking for something that will work like multiple Rails instances with a common memcached and sessions/caches stored in the memcached... 回答1: I was recently listening to

Hadoop client and cluster separation

时光毁灭记忆、已成空白 提交于 2019-12-04 21:43:53
I am a newbie in hadoop, linux as well. My professor asked us to seperate Hadoop client and cluster using port mapping or VPN. I don't understand the meaning of such separation. Can anybody give me a hint? Now I get the idea of cluster client separation. I think it is required that hadoop is also installed in the client machine. When the client submit a hadoop job , it is submit to the masters of the clusters. And I have some naiive ideas: 1.Create a client machine and install hadoop . 2.set fs.default.name to be hdfs://master:9000 3.set dfs.namenode.name.dir to be file://master/home/hduser

Apache Flink streaming in cluster does not split jobs with workers

喜欢而已 提交于 2019-12-04 21:43:23
问题 My objective is to setup a high throughput cluster using Kafka as source & Flink as the stream processing engine. Here's what I have done. I have setup a 2-node cluster the following configuration on the master and the slave. Master flink-conf.yaml jobmanager.rpc.address: <MASTER_IP_ADDR> #localhost jobmanager.rpc.port: 6123 jobmanager.heap.mb: 256 taskmanager.heap.mb: 512 taskmanager.numberOfTaskSlots: 50 parallelism.default: 100 Slave flink-conf.yaml jobmanager.rpc.address: <MASTER_IP_ADDR>

Application-level JOIN with WHERE and ORDER BY on N postgresql shards

故事扮演 提交于 2019-12-04 19:13:14
I have a postgresql cluster with different tables residing within different shards (different physical postgresql servers). EG: shard A + user_group (user_group_id, user_group_name) shard B + user (user_id, user_group_id (NULL), user_name) shard C + comment (comment_id, user_id, comment_content) I need to run queries that if all 3 tables where on the same shard, it would look something like: SELECT comment_id, comment_content FROM comment INNER JOIN user ON comment.user_id = user.user_id LEFT JOIN user_group ON user.user_group_id = user_group.user_group_id WHERE user_group_id > 10 AND user

npm cluster error on node.js 0.6.5

送分小仙女□ 提交于 2019-12-04 17:46:21
I uses the following code to take advantage of cluster npm for my node app. form = require("connect-form"); express = require("express"); app = express.createServer(form({ keepExtensions: true })); cluster = require("cluster"); // App configuration // .... // Run on cluster cluster( app ) .use(cluster.logger('logs')) .use(cluster.stats()) .use(cluster.pidfiles('pids')) .use(cluster.cli()) .listen(port); This was working fine on node 0.4.4 but I end up with the following error on node 0.6.5 luc@localhost:~/server$ node app.js node.js:201 throw e; // process.nextTick error, or 'error' event on

CTDB Samba failover not highly available

萝らか妹 提交于 2019-12-04 17:07:27
My Setup 3 nodes running ceph + cephfs 2 of these nodes running CTDB & Samba 1 client (not one of the 3 servers) It is a Lab setup, so only one nic per server=node, one subnet as well as all Ceph components plus Samba on the same servers. I'm aware, that this is not the way to go. The problem I want to host a clustered Samba file share on top of Ceph with ctdb. I followed the CTDB documentation ( https://wiki.samba.org/index.php/CTDB_and_Clustered_Samba#Configuring_Clusters_with_CTDB ) and parts of this: https://wiki.samba.org/index.php/Samba_CTDB_GPFS_Cluster_HowTo . The cluster is running

Adding a generic service to cluster from powershell

倖福魔咒の 提交于 2019-12-04 16:53:10
I'm a newbie in clustering and I'm trying to create a generic service to a cluster using PowerShell. I can add it without any issues using the GUI, but for some reason I cannot add it from PowerShell. Following the first example from the documentation for Add-ClusterGenericServiceRole , I've tried the following command: Add-ClusterGenericServiceRole -ServiceName "MyService" This throws the following error: Static network was [network range] was not configured. Please use -StaticAddress to use this network or -IgnoreNetwork to ignore it. What's the connection between the network and my service?

How to read individual sectors/clusters using DeviceIoControl() in Windows?

廉价感情. 提交于 2019-12-04 16:51:31
I dropped my laptop while Windows was preparing to hibernate and as a result, I got a head crash on the hard drive. (Teaches me to get a hard drive and/or laptop with a freefall sensor next time around.) Anyway, running SpinRite to try to recover the data has resulted in all the spare sectors on the disk to all be all used up for all the recoverable sectors so far. SpinRite is still going right now, but since there won't be anymore spare sectors to be used, I think it'll be a fruitless exercise except to tell me where all the bad sectors are. Anyway, I'm planning on writing an application to

Clustering Node JS in Heavy Traffic Production Environment

有些话、适合烂在心里 提交于 2019-12-04 15:45:19
I have a web service handling http requests to redirect to specific URLs. Right the CPU is hammered at about 5 million hits per day, but I need to scale it up to handle 20 million plus. This is a production environment so I am a little apprehensive about the new Node Cluster method b/c it is still listed as experimental. I need suggestions on how to cluster Node on handle the traffic on a linux server. Any thoughts? 5 million per day is equivalent to 57.87 per second, and 25 million is 289.4 per second. These numbers are not too much for a single server for your case. If you only want to

Connection to Redis cluster failed

本小妞迷上赌 提交于 2019-12-04 15:43:29
I have setup Redis cluster in Google compute Engine by click to deploy option. Now i want to connect to this redis server from my node js code using 'ioredis' here is my code to connect to single instance of redis var Redis = require("ioredis"); var store = new Redis(6379, 'redis-ob0g');//to store the keys var pub = new Redis(6379, 'redis-ob0g');//to publish a message to all workers var sub = new Redis(6379, 'redis-ob0g');//to subscribe a message var onError = function (err) { console.log('fail to connect to redis ',err); }; store.on('error',onError); pub.on('error',onError); sub.on('error'