Giter VIP home page Giter VIP logo

cluster-computing's People

Contributors

110101001 avatar metoochenxiaojian avatar shaloc avatar sjhnju avatar

Watchers

 avatar

Forkers

yfang1644

cluster-computing's Issues

Mac address config

Try this

/etc/sysconfig/network-scripts/ifcfg-eth0
MACADDR= xx:xx:xx:xx:xx:xx

Since eth0 can't down for we connect it to NFS, this is the only way we setup it while system booting. Besides, it seems that changing /etc/init.d/network doesn't work.

Asking for test programs

Beside calc \pi, we may need a new script to test the ability of cluster.

And we shall prove it have a complex of O(n^2)+.

Need a new shell

Using shell script can use less resources, but the script is writeen by bash
the sh can't run this script and it may throw an exception.

set bootargs to different computer

bootargs= ... machine=computer1
initrc set hosts according cmdline
# more /etc/init.d/hostname

#!/bin/sh
if [ "$1" = "start" ]
then
    machine=`cat /proc/cmdline |sed -e "s:\S.*machine=::g"|sed -e "s: .*$::g"`
    mkdir /tmp/$machine
    ipv4=`ifconfig eth0|grep "inet addr"|sed -e "s/.*inet addr://g"|sed -e "s: .*$::g"`
    cat > /tmp/$machine/hosts << EOF
127.0.0.1  localhost
EOF                                                                             
    echo "$ipv4 $machine" >> /tmp/$machine/hosts
    ln -sf /tmp/$machine/hosts /etc/hosts

    if [ -x /bin/hostname -o -x /usr/bin/hostname ]
    then
        echo Setting the hostname to $machine
        hostname $machine
    fi
fi

gethostbyname

  1. remove nameserver from /etc/resolv.conf. ( therefore can't access network by name)
  2. keep /etc/resolv.conf working, add /etc/nsswitch.conf:
    hosts: files dns

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.