problem about cluster-computing-Collection of common programming errors


  • Anony-Mousse
    weblogic cluster-computing heartbeat
    I’m currently developing a system to ensure high performance, availability and scalability; fail-over and crash recovery on a WebLogic integration scenario.Does anybody know if it is possible to customize WebLogic’s native heartbeat messages, to add some additional information such as current CPU usage and/or network load?The purpose is to allow load-balancing algorithms that use that “custom” information, to avoid overloading a struggling server with more requests.

  • rocketscientist
    java-ee concurrency jboss cluster-computing
    I have 2 identical, standalone JBoss 5.1 servers. I am writing an application that wakes up periodically to process a queue, which is implemented as a table in an Oracle database.The pseudo-code is:Wake up. Is the current time between 7am and 7pm? If yes, continue. If no, go back to sleep for 5 minutes. Read the contents of the first row in the ‘queue’ table Send a HTTP POST to another server with the content read in step 3. If the POST succeeds, remove the row. Else, leave the row in the table.

  • Anup Saumithri
    ubuntu hadoop cluster-computing distributed-computing
    This may be a silly question. I confess I am totally new to hadoop, so please bear with me.But,Is it possible to emulate master nodes for NameNode & JobTracker and multiple slave nodes for DataNode & TaskTracker on a single ubuntu installation without having to have multiple laptops/computers?Is there anyway I can emulate multiple nodes for a fully distributed hadoop operation on a single ubuntu installation?Again I apologize if there are logical flaws &| factual inaccuracies in my q

  • Rudi Visser

  • Zak_Rhol
    java web-applications java-ee cluster-computing
    Is there a way to find all nodes belonging to the cluster of the web-application? I know on JBoss i can use HAServiceMBeanSupport to get information about all nodes(hostname, IP-adress), but how can I achieve something similar on Tomcat, WebSpere, Glassfish, Oracle AS, Jetty, WebLogic? (Best would be an interface which works for all of them)

  • Aphoid
    java memory cluster-computing sungridengine
    We have a couple of SGE clusters running various versions of RHEL at my work and we’re testing a new one with a newer Redhat, all . On the old cluster (“Centos release 5.4”), I’m able to submit a job like the following one and it runs fine:echo “java -Xms8G -Xmx8G -jar blah.jar …” |qsub … -l h_vmem=10G,virtual_free=10G …On the new cluster “CentOS release 6.2 (Final)”, a job with those parameters fails due to running out of memory, and I have to change the h_vmem to h_vmem=17G in order for

  • user2515522
    cluster-computing quartz-scheduler
    My Problem is to find if a job is still running in a cluster environment. Running means to check if the thread is still active because in any failure the thread may crashed but the job status is not set right. Is there any API available to ask if a job is still running somewhere in the cluster? For any reason a job can crash in the environment but the quartz job status is still running. My Problem is to find those “ended” job and do some cleanups. Is there maybe a way with JMX because in quart i

  • SoftMemes
    cluster-computing rabbitmq message-queue high-availability
    I’ve been looking at RabbitMQ as a candidate for a highly available and reliable message broker. What I need is a message broker running on n physical machines that will keep running even after hardware or network failure of a single instance. Individual messages will need to be transmitted reliably with at-least-once semantics. The cluster will also need to be able to heal itself and allow a crashed instance to be restarted without additional manual invention!Reading the RabbitMQ documentation,

  • Wesley Bland

  • Anony-Mousse
    python tcp amazon-web-services twisted cluster-computing
    Important note:I’ve asked this question already on ServerFault: http://serverfault.com/questions/349065/clustering-tcp-servers-so-can-send-data-to-all-clients, but I’d also like a programmers perspective on the problem.I’m developing a real-time mobile app by setting up a TCP connection between the app and server backend. Each user can send messages to all other users. (I’m making the TCP server in Python with Twisted, am creating my own ‘protocol’ for communication between the app/backend and h

  • Mark
    node.js cluster-computing child-process
    This is the sort of the same question as before:node.js child processesI’m asking about whether or not I should use a child process per match for my node.js game.But I realized that previously I neglected to include some very important details.The game allows players to manipulate game rules in certain limited ways. However this can still lead to infinite loops / memory leaks / stalls and crashes.Is 1 process per match a scalable / reasonable idea?

  • Kelly Goedert
    jboss cluster-computing
    I have a jsf2 app in a jboss 6.x server. From everything I have read here and searching in google, it is always recommended to use sticky sessions. From my understanding, this means that the same node will always be responsible for the requests of the same user. Is this right?If it is, what is the point of using jboss on a cluster mode? Couldn’t I just have two jboss instances and let the load balancer distribute the requests?

  • Amro
    r parallel-processing cluster-analysis cluster-computing
    I am a user of a Rocks 4.3 cluster with 22 nodes. I am using it to run a clustering function – parPvclust – on a dataset of 2 million rows and 100 columns (it clusters the sample names in the columns). To run parPvclust, I am using a C-shell script in which I’ve embedded some R code. Using the R code as it is below with a dataset of2 million rows and 100 columns, I always crash one of the nodes.library(“Rmpi”) library(“pvclust”) library(“snow”)cl <- makeCluster() load(“dataset.RData”) # datas

  • Joan
    controller cloud cluster-computing eucalyptus
    I have 2 physical machines. If I make cloud computing with Eucalyptus :First physical machine will be Cloud controller, Cluster controller and Walrus controller Second physical machine will be Node controllerIf first physical machine crashs what will happen to my virtual machines without Cluster controller ? If second physical machine crashs what will happen to my virtual machines without Node controller ?

  • David Levesque
    r amazon-ec2 cluster-computing starcluster
    Starcluster on EC2 ubuntu stopped working. I am not aware of any intentional configuration change or anything else and am unable to find much help. Can you please tell me if anyone has any suggestions? starting, terminating, or even listing clusters is erroring out. Below is the error I am getting when I try to listclusters:ubuntu@ip-10-29-249-203:~$ starcluster listclusters StarCluster – (http://star.mit.edu/cluster) (v. 0.94) Software Tools for Academics and Researchers (STAR) Please submit bu

  • Sepp Van Rompaey
    node.js udp cluster-computing
    I’m trying to run following node js application as mentioned https://github.com/joyent/node/issues/2194 var util = require(“util”),dgram = require(“dgram”),cluster = require(‘cluster’);var udp = dgram.createSocket(“udp4”); var port = 1190;if (cluster.isMaster) {for (i = 0; i < 2; i++) {cluster.fork();} } else {util.log(“starting udp server on port ” + port);udp.on(“error”, function (error) {util.log(“failed to bind to UDP port – ” + error)});udp.bind(port); }The app exits immediately with the

  • Thomas
    node.js cluster-computing
    I am using nodejs to build an offline cache system for a web service. Basically, it polls the web service’s public methods once in a while and caches the data in memcached. Works just fine.However, I want it to be bullet proof and survive any uncaught exceptions, that bring down the server. I have read around about different approaches and I believe that the cluster module is really good for my needs. However, I will not be using all the CPU cores for my purpose, as I only 1 thread running and

  • Amro
    coldfusion cluster-computing
    Ok, here is the background. We have a clustered environment setup for running our coldfusion server, it basically split into two different instances, that the generic address redirects requests to. I have my app setup to send me emails whenever an error is caught by a user.Over the last week or so, I have had cases, where I have received 500+ error emails over than of 5 minutes for one user as they go through the app in question. Under normal circumstances, I might receive a dozen all day. In mo

  • Jacky Lee
    javascript node.js static cluster-computing interprocess
    I want the followingDuring startup, the master process loads a large table from file and saves it into a shared variable. The table has 9 columns and 12 million rows, 432MB in size. The worker processes run HTTP server, accepting real-time queries against the large table.Here is my code, which obviously does not achieve my goal.var my_shared_var; var cluster = require(‘cluster’); var numCPUs = require(‘os’).cpus().length;if (cluster.isMaster) {// Load a large table from file and save it into my_

  • Charlie Lipford
    multithreading function node.js cluster-computing worker
    So I am working on a project in Node.js and I want to open up some extra threads to handle the processing load more efficiently. But I am using classes with function definitions with them and when I try to send those objects to the worker thread, the functions defined in the object disappear and I am only left with the other fields in the object. Is there a way to send the worker an object and preserve the functions so they can be called within the worker?var cluster = require(‘cluster’);if(clus

  • Frédéric Godin
    matlab parallel-processing cluster-computing
    I try to run a simple task on different machines of a cluster. My configuration has been validated (it’s ok). When I run the code on the ‘local’ configuration, it works. But when I use the cluster configuration, I get the following error :Error using parallel_function (line 598) Undefined function ‘lafunc’ for input arguments of type ‘double’. Error Stack : (No remote error stack) Error in petittest (line 6) –» (petittest is my program’s name) parfor it=1:200I try to modify the code to use “df

  • Dudas
    c++ matlab cluster-computing sge
    i have a matlab code that run a c++ functions, it works well on my computer or any other desktop I’ve tried to run it on. (in order to run it on other desktop i copied the matlab/c++ functions and the mex files)lately I’ve tried to run the code on a sge cluster but i get an error messege “Undefined function ‘img’ for input arguments of type ‘double'””img” is the c++ function called by matlab.does anyone encountered the same problem? does anyone knows how to solve it?10x Elad

  • Hristo Iliev
    centos cluster-computing openmpi
    I am a very new user to Linux and compiling on my own cluster. I have attempted to install OpenMPI on my own and thereafter compile LAMMPS. However I encountered errors which I simply could not resolve:angle_charmm.o: In function `Intracomm’: /usr/include/openmpi-x86_64/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined reference to `MPI::Comm::Comm()’ /usr/include/openmpi-x86_64/openmpi/ompi/mpi/cxx/intracomm.h:25: undefined reference to `MPI::Comm::Comm()’ angle_charmm.o: In function `Intracomm’:

  • RyanStochastic
    matlab parallel-processing cluster-computing undefined matlab-toolbox
    I am trying to run a parallel job on a large cluster; all code and functions work fine on my computer (Mac OS 10.7 & Matlab v7.13.0.564 (R2011b)) but something is not working on the cluster (unix-redhat 5.5 – kernel = 2.6.18-238.12.1.el5 Matlab v7.13.0.564 (R2011b)The following is a sequence of commands that works without error on my machine and fails on the cluster. The function add2nums is in the subdirectory ./lib, and is also documented below.function out = add2nums(num1, num2)out = num1

  • Anony-Mousse
    jboss seam jboss5.x cluster-computing
    Environment: JBoss 5.1.0, JBoss Seam 2.2.0 While trying to get my application running in a clustered environment after login I am getting the following exception. Post login we try to store the currentUser in jboss seam session context.java.io.NotSerializableException: org.jboss.seam.util.AnnotatedBeanPropertyHow to resolve this?java.io.NotSerializableException: org.jboss.seam.util.AnnotatedBeanPropertyat java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1156)at java.io.ObjectOutpu

  • Sergej Andrejev
    r cluster-computing mpi
    I’m trying to install Rmpi package on a LAM MPI cluster machine. Previously I had been compiling and testing some stuff (mpi4py and small C++ programs) so I’m sure the MPI itself works. However installing Rmpi package fails when linking libraries.My main suspect is a call to gcc instead of mpicc in makefile (I’m trying to find the line in configuration to change this but so far could not locate it).Does somebody have experience with installing Rmpi on LAM, and how did you manage that?Architectur

  • chernovsergey
    opencv machine-learning computer-vision cluster-computing
    I try to make a dictionary of descriptors by using OpenCV. When I use method .cluster() of BOWKmeansTrainer, my application throws unhandled exception OpenCV Error: Assertion failed (data.dims <= 2 && type == CV_32F && K > 0) in unknown function, file ……\src\opencv\modules\core\src\matrix.cpp, line 2485Unknown exceptionI can’t understand why it happens. I tried to change parameters, but it didn’t help.Could You give me some ideas how I can solve this problem?int main(int

  • mykola
    java weblogic ejb-3.0 cluster-computing
    I have local cluster (Weblogic 10.3.5, just for tests) with 2 nodes on 1 machine and i have ear application with ejb and web modules inside. All EJBs are local (marked with @Local) and they worked in this configuration without problem on Weblogic 10.3, but now my application throws an exception on first (and all consequent) request. Exception text:####<14.01.2013 20:41:53 MSK> <Error> <Kernel> <MYCOMP> <MS1> <[ACTIVE] ExecuteThread: ‘0’ for queue: ‘weblogic.kerne

  • Toon Krijthe
    powershell cluster-computing msdtc
    We are trying to Install MSDTC using powershell on a 2 Node Failover Cluster on a WS2012 std environment. Everything goes right except the grouptype of the MSDTC resource appears unknown (9999). Instead of dtc grouptype(103). Please find the script blockAdd-ClusterServerRole -Name $msdtcnetname -Storage “$dtcdisk” -StaticAddress $ipaddress Get-ClusterGroup $msdtcnetname | Add-ClusterResource -Name $msdtcname -ResourceType “Distributed Transaction Coordinator” Add-ClusterResourceDependency $msdt

  • user963602
    jboss jms cluster-computing jboss-4.2.x
    Am trying to set load balancing environment for Jboss. I have tow nodes, node1 & node2.I tested the fail-over and it works correctly, but the jms queue is not working at all, I have the following error (note that it works just fine in default setting with no clustering):Error 1:11:28:09,828 INFO [ConnectionFactoryBindingService] Bound ConnectionManager ‘jboss.jca:service=DataSourceBinding,name=DefaultDS’ to JNDI name ‘java:DefaultDS’ 11:28:11,328 WARN [ServiceController] Problem starting s