Home

RUBiSVA USER`S MANUAL

image

Contents

1. 22 4 322 Step 2 The networks ns te ne een id 22 43 3 Step 3 Start domU ee el M 22 4 3 4 Step 4 Assign roles configure and start appropriates services uueueessersnersnesnnennnnnnonsnennnennnennnennnennnennen 22 5 0 REFERENCES cia 24 Figures Fisure 1 RUBIS OVetvIe Wo ou ovi oT aid ias 1 Figure 2 RUBISV A deployment cistitis 12 Figure 3 RUBiS web output page ccooonnccnnononocononononcnonnconncnnncnn 14 Figure 4 RUBIS using Ganglia for resource usage coooocnoccnoncnocanoncnnnncnnncnnccnnnonnno nono nana conan nne nnns 15 Figure 5 Fedora xenguest install eese 19 Fisure 6 autodeploy scenano1 miii e ee eret ideas 1 iilPage 1 0 Introduction 1 0 INTRODUCTION llPage Page 12 1 0 INTRODUCTION RUBIS is an auction site prototype modeled after eBay com that is used to evaluate application design patterns and application server s performance scalability The RUBiSVA brings more simplicity in term of installation deployment and monitoring People have been struggling to get the RUBiS benchmark working With this version we are offering a Virtual Appliance with everything installed inside and ready to go A virtual appliance consists of an image disk of a preinstalled system Like software appliances virtual appliances are aimed to eliminate the installation configurat
2. your rpm files run for each one Note that you may need other files for dependency purposes such as gexec lib You will find them in the same location If the rpm do not work download the Ganglia src from the same location and make install To achieve your compilation and installation successfully take a look at the README and INSTALL files inside the Ganglia src tar ball 4 2 5 MOD_JK This will help you to load balance between to JBOSS AS This is the link we use to configure our modjk http wiki jboss org wiki UsingMod_jk1 2WithJBoss 4 2 5 Uploading RUBiS snapshot and needed scripts 211 4 0 Building your own RUBiSVA Inside the rubisva_1 0 tar copy domU scripts inside opt as follows AALS LIAS OOOO OI Copy the RUBiS snapshot as follows C Now you will be able to populate your database by running successively the following scripts inside root rubis RUBIS database rubis sql regions sql categories sql 4 3 The deployment procedure 4 3 1 Step 1 Copy To deploy the script starts by copying as many domU as it needs in a temporary directory You can either choose to keep existing image copies or not This means that e g if you have 5 domU images in this directory names rubisva_1 2 or 3 or 4 or 5 img the script will keep them if it has to create them so you will be saving some time when deploying 4 3 2 Step 2 The network We chose to assign dynamically ip address to each domU This could be repl
3. SPI SE NO SINIT SII SE S NAT S SI S SITIS SE STI ST S SI STI SE S T In this case you will replace the line option domain name servers 128 178 15 227 128 178 15 229 with option domain name servers 123 123 123 123 124 124 124 124 Note that you can have one or more DNS servers http www dns net dnsrd docs whatis html amp 1 4 0 Building your own RUBiSVA 3 3 RUBISVA distribution The root password of your is rubisva The VNC password of your VA is rubisva The RUBiSVA distribution is inside the rubisva_1 0 tar downloadable from the same location as this document Here is the structure of the rubisva_1 0 tar rubisva 1 0 tar rubisva rubisva 1 0 img scripts dom rubisva _dhepd conf _ssh keyswap sh _vif bridge rubis sh _do_cross_config sh _check_finger_print sh _autodeploy sh _shutdown_all_vm sh domU setdbip sh sethostname sh setjbossnodeid sh setjbossworkernode sh setapacheclient sh sethosts sh ganglia metric disk metrics sh disk metric daemaon sh If you read the XEN user s manual mentioned above you probably already know about XEN Once you installed the kernel XEN and booted it you have basically booted into the dom0 Therefore the dom0 is the domain of your new Linux XEN server The term domU or guest will be associated to all virtual machines that you are running from the dom0 Under rubisva scripts dom0 you will find the f
4. http rubis objectweb org RUBISVA A virtual appliance of the RUBiS benchmark USER S MANUAL May 28 2008 Revision Sheet Revision Sheet 5 28 2008 ilPage USER S MANUAL TABLE OF CONTENTS Contents 1 0 IATDAUCHOR MEUM M 2 1 1 Targeted AudienCe n 2 1 2 Structure of the document een 2 1 3 Further Readings nac noo rccnconoronnoss 2 2 0 jp 4 2 1 QUICK INTRODUCTION beisccssscsccsssscsccasscsssssesecsscansgcrscsssecsconnsestcdeavecssenevenssensteccsesesssdsesecses 4 2 2 AVAILABLE IMPLEMENTATIONS ssscssssssssssscsssssscescessscscescssesescesecsossscesesessesssnsenees 4 3 0 GETTING STARTED sissies neoe enia io rA EEEn aaeeeo daS STs ean Ke iSS 6 3 1 r i e 6 3 2 REQUIREMENT R 6 3 2 1 A RA ER 7 3 2 2 XEN kernel for yout Linux Server eee tige essen 7 3234 DUCK eS E rere eae cree pee ae ir 7 33 RUBISVA ister wt On adri 9 3 3 RUBISVA COMMPULALION ERE 10 3 3 1 Create a bridge between ethO and your subnet ssssssssessseeeeeeeeeneeenren ener 10 33 2 RUBISVA configuration file sreo essetis ertet eres nassen aan 10 3 3 3 Exchanging SSH keys with the VA reference eene r
5. http java sun com j2se 1 4 2 download html From here on we will assume that you have got the SDK version and are not using any RPMs The file you will have will be called j2sdk 1 4 2 01 linux 1586 bin Install the J2SDK Copy the bin file from the previous step to ust local then run it NANANA ISI IEEE IEEE A SPS NINI NE Jj2sdk 4 2 O1 linux i586 bin ANN SON ED EE S This creates usr local j2sdk 1 4 2 01 e Set JAVA as an environment variable pointing to the location of J2SDK you just installed in this case usr local j2sdk 1 4 2 01 If you want this environment variable to be iS JAVA_HOME usr local j2sdk 1_4 2 01 export JAVA HOME Verify that JAVA is set LN m gt ES gt gt A E mi PSS SENS SINS SS INN NNN NN NNN NNN NN NNN NN NNN NEP You should see the value usr local j2sdk 1_4_2 01 returned If you don t go back through the steps until JAVA_HOME resolves to the correct value SELLING UL THE JAYA CLASSTAIH EEE ee eee Cee EE ee root ns root more bash_profile S bash profile gt lt Get the aliases and functions dE f bashre then E bashre fi User specific environment and startup programs
6. 3 2 1 A Linux server The distribution doesn t matter Note that they might be some differences across distributions when it comes to configure your XEN Linux server We will be explaining the process for a Fedora core 5 distribution 3 2 2 XEN kernel for your Linux server In order to run a virtual appliance with XEN you will need to install a XEN kernel You will have thus to boot your Linux server into this kernel later on Let s see how it works The Xen Virtualization user manual 3 0 tell you all about what you need to know for this step The following is what has been done on a Linux Fedora 5 We use the yum installer to get quite quickly the Linux XEN up running This is strongly inspired from the XEN Fedora Quickstart e Install the Kernel xen as follows IES ESE SA SA AN N AN ISI nn N Sn e Since the XEN kernel is not always enable by default you will need to change default parameter in boot grub grub conf from default 1 to default 0 as follows SS SCC DS DC SC D CS CS D SS CD SS CSS CSS CS SC CSS CS CCS CS SC S SC CSS Sl Cl ST T S CS SC Sl ST S S S ST S S S SS Note It is really important to change the red line as in the grub conf sample above such that the kernel will boot on runlevel 3 and not rhgb like the fc5smp e Reboot your machine 3 2 3 DHCP e In order to have the internet in your virtual appliance cluster later on you need to have the DHCP server installed on your
7. Linux Server The DHCP server will help you to assign dynamically an IP address to each http docs fedoraproject org release notes fc5 http tx downloads xensource com downloads docs user 7 http fedoraproject org wiki FedoraXenQuickstartFC5 Quick_Start 7lPage 4 0 Building your own RUBiSVA Virtual machine VM in your RUBiS s cluster The following DHCP site tells you more about DHCP and how to install it In Fedora you could use yum instead of making install from a the tar ball source SL SS A SA SILES SOS SES SES SOS SES SOS SOS SS ESSE SIISE IIS AS a III gt lt yum install dhcp VUVVVVVVVVYVVVVVVVYVVVVVVVVVVVVVVVVVYVYVYVYVVVVVVVVVVVVVVYVVVVVYVYVYVYVYVVVVVVSVNVNV You will be then able to restart your DHCP server as followed AAA AAA AAA AA PEAN CS DN IS S S I ENS S8 IS NENE ENEE ENEE EYES EN N NN NN NN ENS ENE NN NN NN IS INS N IS I8 IS UIS IS service dhcpd restart NU SS ENS If you have a freshly installed DHCP you can overwrite your own dhcpd conf with the one provided in rubisva_1 0 tar located in the package folder rubisva scripts dom0 see the section 3 3 to view the architecture of this tar ball
8. String Metrics S vU gmond started Thu 01 Jan 1970 01 00 00 0100 gt last_reportecl 0 days 0 00 05 11 00 11 20 11 40 uptime 14014 days 9 56 42 Bin Constant Metrics rubis_dbl Packets last hour cpu_num CPUs 39 8 cpu speed 3800 MHz 2 6 mem_total 263568 KB b u swap total 557048 KB 2 0 Gmetrics 11 00 11 20 11 40 Bin Bout Figure 4 RUBiS using Ganglia for resource usage 15 Page 4 0 Building your own RUBiSVA 4 0 BUILDING YOUR OWN RUBiSVA 16 Page 4 0 Building your own RUBiSVA 4 0 BUILDING YOUR OWN RUBISVA The VA build in this section is based on a fedora core 5 Before you start building your VA you will need to follow requirements for the domO specified in section 3 2 This will help you to install XEN kernel 4 1 Components 4 1 1 RUBIS client The following components are required on the client box e Java JDK http java sun com javase downloads index jsp e Apache Ant Attp ant apache org manual to build and run the project e Ganglia GMetad and GMond http ganglia wiki sourceforge net o Ganglia Gmond will collect metrics on your computer and publish them via udp o Ganglia Gmetad will gather data published via the udp channel and persist them into a RRD round robin database e RRD o The round robin database o tool to output graphics from persisted data e Apache HTTP server http httpd apache org docs project needed by the Ganglia web frontend The la
9. Thus you may run these commands tar xvf rubisva 1 D tar cp rfrubisva_1 D rubisva scripts domD ete xen auto cd etc xen autu a Ee RON NEN NAN PSPS SO SS SIS S NT LD SENSIT SIE SE SE SIT SE SE S STISP SP SI SEC SEINS gt If you are using your DHCP for other purposes already just append the subnet declaration part from the rubisva_1 0 rubisva scripts dom0 dhcpd conf in your own dhcpd conf If you are using already the subnet 192 168 1 0 change it to something else but remember you will have to change some scripts NEN NS EEES IEEE EEES ESE ENE ESE Y subnet 192 168 1 0 netmask 255 255 255 0 j option subnet mask 259 299 299 0 option broadcast address 192 168 1 255 J option routers 192 168 1 1 9 option domain name rubisva ch 1 range 192 168 1 50 192 168 1 100 5 option domain name servers 128 178 15 227 128 178 15 229 E N option domain name servers 182 158 1 1 y IPS Se ISIN NISI NISI NN INN DN INESIS NES INN DNS To finish your DHCP configuration you need to change the option domain name servers To know what your DNS servers are run the following command mare etc revolv conf the output looks like search foo ch nameserver 123 123 123 123 nameserver 124 124 124 124 DLS SN NS NENI NINININI DSSS SOS SSD SE SENSIT SE SENS STI SE
10. have the DHCP as service If you do not please start manually your DHCP after you run this SEE S S S S S SA S S S N SILES SS OSOS NS NS gt NZ NN NS SES OS SES AN IA NN N N IN INC if bridge init sh start Note that if you were using the subnet 192 168 1 0 already for other purposes you must have changed the rubis subnet to something else If you are in this case you have to edit the vif bridge init sh and change the red line below so it matches the subnet you choosed brctl addbr rubisbrO ip link set rubisbrO up iptables t filter F iptables t mangle F iptables t nat F iptables t filter P FORWARD DROP iptables t mangle A FORWARD i rubisbrO o ethO j MARK set mark lt iptables t filter A FORWARD m state state ESTABLISHED RELATED j ACCEPT AS SS SA S S PS S S S S SS ASSI IIS PSI SP SP SP SN SI NI NI S DOD S IS PD RSS S SP SIS NANG 4 iptables t filter A FORWARD m mark mark 1 j ACCEPT iptables t nat POSTROUTING m mark mark 1 j MASQUERADE 1 service dhcpd restart xend stop xend start JOlPage 4 0 Building your own RUBiSVA 3 3 2 RUBISVA configuration file Now you have the network available in your cluster One more step and you are done with the configuration The last step is to copy the rubisva configuration file namely rubisva to the right directory If you have followed the instructions so far you should have this file in your etc
11. page 40 EJB2 e EJB2 1 e EJB 3 Note that in general the EJB3 approach is easy to implement and the compiler does a lot for you already E g you may replace a lot of classes required in the version 2 1 by tags something and the compiler will generate the code for you at deployment time http docs jboss org ejb3 app server tutorial index html e http www php net docs php e Servlet http www apl jhu edu hall java Servlet Tutorial e Servlet Hibernate the one we are using inside the VA version http proton inrialpes fr jphilipp dev rubis hibernate index xhtml Virtual Appliance 4lPage 3 0 Getting Started 3 0 GETTING STARTED 5 Page 4 0 Building your own RUBiSVA 3 0 GETTING STARTED In this part you will dive right into the configuration and running part This supposes you don t want to modify the provided RUBiSVA image The latter namely rubisva_1 0 img will be called RUBiSVA image reference 3 1 Overview This version has been done to reduce complexity when it comes to using RUBIS It could be used right away on any Linux machine with XEN kernel see the requirements in section 3 2 for more information It offered four layers Figure 1 RUBiS overview Client s injecting the workload thanks to the RUBiS Client written in java and collecting metric results Apache front end handling HTTP requests from client and able to load balance between multiple
12. yourself Prior to run what follows you should install XEN kernel in your Linux server You will need to read the section 3 2 2 to achieve that If you want to download preinstalled Linux distribution XEN images take a look at the following links e http www jailtime org e http xen org download If you want to build your own fedora guest system yourself you can either follow the XEN user manual http tx downloads xensource com downloads docs user or use xenguest installer We will show you in this part how to use xenguest installer for this purpose With Fedora Core 5 installation of Xen guests using anaconda is supported although with a few known You will then be prompted to answer a few questions regarding the virtual machine you are trying to create This information can all be passed as command line options run with an argument of help for more details In particular kickstart options can be passed with x ks options e What is the name of your virtual machine This is the label used for display in the various xm commands as well as being used as the name of the domain config file in etc xen Use rubisva e How much RAM should be allocated in megabytes This is the amount of RAM to be allocated for the guest instance in megabytes eg 256 Note that installation with less than 256 megabytes is not recommended or likely to work with test2 e What would you like to use as the disk path The local path and f
13. Application servers A S e Server Application serving client request by running RUBiS server In RUBiSVA 1 0 we are using the Servlet_Hibernate version We are using JBOSS 4 4 2 GA as application server Thus we used its Bundled Tomcat and its Hibernate e DATABASE Backend containing RUBIS DB Ganglia Monitoring Ganglia is a scalable distributed monitoring system for high performance computing systems such as clusters and Grids It is based on a hierarchical design targeted at federations of clusters It leverages widely used technologies such as XML for data representation XDR for compact portable data transport and RRDtool for data storage and visualization We are using ganglia to grab resource usage on any VM Virtual Machine Therefore all VMs will have a ganglia software called GMond installed for this matter 3 2 REQUIREMENTS The provided 1 version 1 0 is a XEN image of our RUBISVA XEN like VMWARE are software which allows you to virtualize an OS Operation System We have explained in the introduction section why it is important to use such technique In this part we focus on how you can use what is provided in the VA for deeper information you may go over the Building part in the section 4 0 To do the following you will need root privileges of your Linux server http xen org http www jboss com products platforms application http tomcat apache org 6lPage 4 0 Building your own RUBiSVA
14. NNING TESTS After you have deployed all domUs you can start running tests 121Page 4 0 Building your own RUBiSVA To run a test you need to know a little bit about RUBiS Client properties You will find in the VM under root rubis RUBIS Client Client The rubis properties will help you to configure your experiment You will then be able to set up the up ramp down ramp the experiment duration the number of users per nodes Here are some important configuration fields VAN AWA AANA A AW AW AW AW AAW AW AN AAW AW AAA AWA AAW WA AAA AW P AAW AWA AAW 9 Workload precise which transition table to use 1 warklnad number uf clients per nade 10000 J Salat ans ik workload TransitionTables default_transitions_03 txt workload_number_of_columns 27 AAAA workload_up_ramp_time_in_ms 6000 3 workload_up_ramp_slowdown_factor 2 gt workload_session_run_time_in_ms 300000 workload_down_ramp_time_in_ms 6000 workload_down_ramp_slowdown_factor 3 EN IN EN NS ALSO ZE EP PLS POF LOI LOLS NIP INP VENE ISDS SS SLL S SII SENSE SI ED SE S ST SE SE OE S STI SE S SIT S SE NI SP SE S S SIC NN SI ST SE S S The best way is s to do the configuration in your RUBiSVA REF so you could just SSH to run the simulation once you have deployed your rubis cluster Then you just need to run the ant build xml from your dom0 as u inn pa
15. PATH SPATH SH ME bin BASH ENV SH ME bashrc 6 _ USERNAME ront export USERNAME BASH_ENV PATH E lt PATH SPATH usr lncal java j2sdkl 4 06 bin export PATH 201 4 0 Building your own RUBiSVA or download httpd tar ball and install it manually as shown in the following tutorial http httpd apache org docs 2 0 install html 4 2 3 Install MYSQL AND PHP MySQL could be installed straight when you are installing your Linux fedora 5 guest using xenguest install python script 4 2 4 Install JBOSS AND ANT Please follow carefully this document http www jboss org file access default members jbossas freezone docs Installation_Guide beta422 html index html 4 2 5 Install RRD PHP AND GANGLIA As mentioned previously Ganglia will need RRD to store metric values Do not forget that on fedora core the yum installer might help you to skip lots of the following installation links Here is an excellent document about ganglia http people web psi ch markushin hpc docs Ganglia 20070116 pdf To install RRDTool follow instruction at this link http search cpan org src NICOLAW RRD Simple 1 44 INSTALL To install PHP follow this link http dan drydog com apache2php html Finally you can install ganglia GMond GMetad and web front end from rpms You may download those file from http sourceforge net project showfiles php group_id 43021 AL A S SL LS mm La mL om I I I oR After you
16. aced by a static address pretty quickly but we have to deal with the bridge for the subnet 4 3 3 Step 3 Start domU After the copy the script creates a config file for each domU to include in the cluster Those files are stored in your etc xen directory this is mandatory After that all domU can be started using c create command The default configuration on domU is using DHCP to assign addresses If your DHCP is well configured you should have a functional network inside your domU after you started it 4 3 4 Step 4 Assign roles configure and start appropriates services Now that all domU are up running and can access internet you can assign a role to each VM Note that this is done automatically all you have to do is to choose a scenario The scenario is proposed to you when you are running the script Right now there are 3 scenarios Please see section 3 4 for more information Figure 6 autodeploy scenario 1 22 Page 4 0 Building your own RUBiSVA Since all boxes are created from the same VM image it is pretty simple to configure them This is done thanks to all scripts inside in domUs callable from ssh 23lPage d o 5 0 References 5 0 REFERENCES REFERENCES Ganglia http ganglia wiki sourceforge net IBM work on ganglia http www 941 ibm com collaboration wiki display WikiPtype ganglia Xen Virtualization user manual http tx downloads xensource com downloads docs user Systat tutori
17. al http perso orange fr sebastien godard http www madplanet com jboss docu wiki Wiki jsp page 40 EJB2 http docs jboss org ejb3 app server tutorial index html http www php net docs php http www apl jhu edu hall java Servlet Tutorial http proton inrialpes fr jphilipp dev rubis hibernate index xhtml Virtual Appliance http xen org http www jboss com products platforms application http tomcat apache org http docs fedoraproject org release notes fc5 http tx downloads xensource com downloads docs user http fedoraproject org wiki FedoraXenQuickstartFC5 Quick_Start http tldp org HOWTO DHCP http www openssh org http www dns net dnsrd docs whatis html http www realvnc com http java sun com javase downloads index jsp http ant apache org manual http ganglia wiki sourceforge net http httpd apache org docs project http mozillaparser sourceforge net quickstart html http www ceylonlinux com pdf apache_java_tomcat_mod_jk pdf http www jboss org jbossas downloads 2A Page
18. d be prompted with the standard anaconda text screen to choose the installation language and then keyboard aN R Choose a Language What language would you like to use during the installation process Catalan Chinese Simplified amp Chinese Traditional Croatian Czech Danish Dutch lt Tab gt lt Alt Tab gt between elements Space selects lt F12 next screen Figure 5 Fedora xenguest install e Configure TCP IP as you normally would for a system e You are now about to install the guest You can proceed with either a text mode or graphical mode via VNC Graphical Mode Installation via VNC e Select Start VNC e Now provide a password for a secure VNC connection or No Password for an open connection e The VNC server information will be presented Connect with your choice of VNC client either running on the local machine or another system e VNC will display a standard Fedora graphical installation screen Proceed with the installation of your xen guest e Notes l9lPage 4 0 Building your own RUBiSVA o The device is the file identified during the install script py process It appears to the guest as an entire disk not just as a partition you can partition it or carve it up with LVM just like a normal disk The first time you use it you will need to partition and format it during the install process 4 2 2 Install JAVA JDK e go to Sun s Java download site and download J2SE for Linux
19. eiironfubisirubiscvs 2008 02 25 ClientClient bench 2008 6 4G 1 5 29 index t Go IG Latest Release Notes Fedora Project jtest php Fedora Weekly News 2 Community Support Fedora Core 5 Red Hat Magazine RUBIS client emulator C Rice University INRIA 2001 Test date 2008 6 4 1 5 29 Test configuration Test trace Test performance report Test configuration Looking for rubis properties in classpath root rubis rubis cvs 2008 02 25 Client Clienv lib MozillaHtmlParser jar root rubis rubis cvs 2008 02 25 Client Client lib dom4j 1 6 1 jars rooUrubis rubis evs 2 HTTP server information Server name rubis_apachel Server port 80 CJDBC server name EJB Server EJB HTML files path EJB HTML EJB Script files path servlet nu Figure 3 RUBiS web output page P http www realvnc com l4lPage 4 0 Building your own RUBiSVA Ganglia Host Report Mozilla Firetox File Edit View Go Bookmarks Tools Help i Q D E 0 ile iirootjrubis rubis cvs 2008 02 25 Client Client bench 2008 5 15 11 56 32 nub Go Latest Release Notes Fedora Project test php Fedora Weekly News Community Support Fedora Core5 Red Hat Magazine Ganglia Host Report 12 Ganglia Host Report WU ntitled B rubis dbl Overview rubis cluster LOAD rubis cluster MEM rubis cluster CPU rubis dbl Network last hour This host is up and running u v Time and
20. etener 11 3 4 DEPLOYING RUBISVA re een an 12 3 5 RUNNING TESTS 12 4 0 BUILDING YOUR OWN RUBISVA civcossecssesenvinresteenisosseccsscdnnvescentvocsantsaserseussoorecttsnesenydasveseeneotae 17 41 Laudi C asai ususse eases iinis 17 RUBIS Client ee ce Oe ia 17 4 1 23 Apache Web frontend soriire prie ettet et Rete soe ER ta Ron Ere EE Vrae eee ER Re Une Es ea Y EISE PUR cates 17 4 1 3 Application Server JBOSS jesienne teri gne rep cba suum sch ra c aree re voee repa 17 Ad Database Backend uice ie nenne eR DEVON 18 4 2 Building your own RUBiS Virtual Appliance step by step eeeeeee eere eene enne 18 4 2 1 Install the VA Linux distribution tnnt et 18 4 2 2 Install TAV ACID A cta d pies aUe EA O 20 42 2 Tostal l HTTPD E 20 4 2 3 Install MYSQL AND PHP nee a en 21 4 24 Install JBOSS AND ANT eoe ERR lenken 21 4 2 5 Install RRD PHP AND GANGLIA 21 AMO Tano 21 ilPage 4 2 5 Uploading RUBiS snapshot and needed scripts essere 21 4 3 The deployment procedure uuesssssosssonsennsennssnnnsnnnssonssonnsnnnsnnnsnnensnonsnnssnnnennnssnnssnnssonssonssnnnsnnnssnense 22 4 3 1 8tep 1
21. ile name of the file to serve as the disk image for the guest eg home franck rubisvaownl img This will be exported as a full disk to your guest Note you will need to speciy this path in the autodeploy sh script e How large would you like the disk to be in gigabytes The size of the virtual disk for your guest if the file specified above does not already exist The amount to specify depends on what you intend to install 4 0 gigabytes is a reasonable guess for a default install 18lPage 4 0 Building your own RUBiSVA e What is the install location This is the path to a Fedora Core 5 installation tree in the format used by anaconda NFS FTP and HTTP locations are all supported For Fedora 5 distribution http download fedora redhat com pub fedora linux core 5 1386 os If you get an error at this point saying The privileged domain did not balloon you may need to resize one or more of your existing VMs memory limits in order to free up RAM for the new guest VM For instance to resize dom0 to use only 256 megs of RAM you could run IIS ISS SSI SSI SS SS SES SISSI IES SIS SES E xm mem set 256 I ON ND NN ND ND SDA AD ND AS SSD SDD STI SI S DDD DDD TDN Sa Once you have shrunk your existing domains you should be able to re try the xenguest instally py script After this the install kernel and initrd will be grabbed from your install tree and the installer will start e Once the questions are answered you shoul
22. ion and maintenance costs associated with running complex stacks of software 1 1 Targeted Audience This document is targeting two types of audience e People who just want to use right away the RUBIS virtual appliance This is for those who will use the provided RUBiSVA image file directly to deploy it on their cluster e People who would like to modify the appliance to fit their particular needs You may want to change a little bit our RUBiSVA image file to add some functionality or replace a component with another one 1 2 Structure of the document This document will walk you over e An introduction to RUBIS in section 2 0 for people who have never used RUBIS before e How to install and run RUBiSVA version 1 0 RUBiSVA 1 0 in section 3 0 for people who are not going to make any change to the provided RUBiSVA image e How to build such appliance so that it fits your needs in section 4 0 for people who are planning to make changes to the provided RUBiSVA image e How to add change or replace components based on RUBiSVA 1 0 in section 4 0 1 3 Further Readings The following links give more in depth details about the technologies used in RUBISVA like cluster workload virtual appliances and metric tools Ganglia http ganglia wiki sourceforge net IBM work on ganglia http www 941 ibm com collaboration wiki display WikiPtype ganglia Nagios http www nagios org about Xen Virtualization user manual http tx downloads xensou
23. ollowing files rubisva An example of XEN configuration to boot the domU image see section 3 3 2 dhcpd conf The DHCP configuration file for the RUBiSVA cluster subnet see section 3 2 3 ssh keyswap sh Since you need to SSH without authenticating to all domUs while deploying them you will need to exchange key with the image reference rubisva_1 0 img This script will help doing that quite easily see section 3 3 3 http tldp org HOWTO DHCP 10 http www openssh org 9lPage 4 0 Building your own RUBiSVA vif bridge rubis sh It Creates a bridge for your subnet toward the ethO interface see section 3 3 1 check_finger_print sh Contains the fingerprint of the image reference You do not need to change it if you are not creating a new image ref It is used by the autodeploy sh to be aware of the fingerprint of all domU it creates This is useful to SSH without having to confirm the new domU host fingerprint You could read about this technique at autodeploy sh This is the file you are going to use to deploy the cluster and run tests See section 3 4 more details about this on the deployment procedure 3 3 RUBiSVA configuration 3 3 1 Create a bridge between eth0 and your subnet Now that you have your DHCP all set you need to run the vif bridge init sh as follow This script will create a bridge between ethO and your subnet and configure your iptable so that the network will be available in all your subnet you need to
24. rameter is need by default the client emulator is launched _ gt ssh rubis_ client cd root t rubis RUBIS Client Client ant E K K K K 5 Buildfile copy Copying file tn root rubis rubis cvs 2008 02 25 Client Client build RUBiS VAAD compile emulator java RUBIS client emulator D Rice University INRIA 2001 java Creating report directory bench 2008 6 4 1 5 29 java Redirecting output to root rubis rubis cvs 2008 02 25 Llient Llient bench 2008 6 481 5 29 index html java Please wait while experiment is running java Initializing XPCOM fram location opt MozillaHtmiParser mozilla dist bin lin BUILD SUCCESSFUL You could possibly connect to the Client domU if you have the vncviewer the dom0 VNC is tool allowing you to remotely and graphically connect to a computer and take control of the latter For more EDI DDD DPA PDI DIINO AI DD APA ADP PPP 131Page 4 0 Building your own RUBiSVA information on VNC go to the following link http www realvnc com index html We have installed a vncserver in the RUBiSVA image reference that we start in the deployment procedure Run the following command if you want to connect to the domU knowing its hostname using VNC Applications Places System QS A m EI File Edit View Go Bookmarks Tools Help da 1 B 9 0 fil
25. rce com downloads docs user Systat tutorial http perso orange fr sebastien godard 2lPage 2 0 RUBiS 2 0 RUBIS 3lPage 2 0 RUBiS 2 0 RUBIS 2 1 QUICK INTRODUCTION RUBIAS is an auction site benchmark that implements the core functionality of an auction site selling browsing and bidding It does not implement complementary services like instant messaging or newsgroups It distinguishes between three kinds of user sessions visitor buyer and seller For a visitor session users need not register but are only allowed to browse Buyer and seller sessions require registration In addition to the functionality provided during visitor sessions during a buyer session users can bid on items and consult a summary of their current bids rating and comments left by other users Seller sessions require a fee before a user is allowed to put up an item for sale An auction starts immediately and lasts typically for no more than a week The seller can specify a reserve minimum price for an item For further reading about RUBIS please look at the following site http rubis objectweb org doc index html 2 2 AVAILABLE IMPLEMENTATIONS You may find available information and descriptions about older RUBiS versions at http rubis objectweb org doc install html Other than the RUBiSVA 1 0 you will find multiple versions using different technologies listed below e FJB 2 0 http Awww madplanet com jboss docu wiki Wiki jsp
26. tter presents GMetad data in a nice web page e Mozilla HTML parser http mozillaparser sourceforge net quickstart html used by the RUBIS client to represent the html page as an XML DOM Object e The client RUBiS Snapshot provided with this document e Vncserver because it is handy to graphically connect to the client box so you can use the browser to view experiment results 4 1 2 Apache Web frontend The following components are required on the apache web frontend box e Apache HTTP server e Connector e Ganglia GMond 4 1 3 Application Server JBOSS The following components are required on the JBOSS Application server box e JBoss Application Server e Ganglia GMond P http www jboss org jbossas downloads 17lPage 4 0 Building your own RUBiSVA 4 1 4 Database Backend The following components are required on the Backend box e MySQL or PostgreSQL database e Ganglia GMond 4 2 Building your own RUBIS Virtual Appliance step by step In this part we show you how to build a RUBiSVA We use JBOSS 4 2 2GA as the application server and MySQL as the Database The idea is to combine all components in one VM so that we will be able to configure each copy of it individually at deployment time 4 2 1 Install the VA Linux distribution We have chosen to use a Fedora 5 core in our reference VA You have two options e Either download a preinstalled Linux distribution XEN image e Or build your guest system by
27. xen auto directory Just copy it into letc xen This is im ortant since allxen VA config file should be in this directory Y Y The rubisva_1 0 img file is the VA reference image file In this example we supposed we are in the directory where I unpacked the package rubisva_1 0 tar and we want to copy the reference image on under srv xen own The rubisva conf file should then looks like this x gt gt 3 3 3 Exchanging SSH keys with the VA reference Since you need to SSH without authenticating to all domUs while deploying them you will need to exchange key with the VA reference first ssh keyswap sh will help you achieving that You need to follow these steps to start your VA exchange keys and close the VA lt B http www openssh org lllPage 4 0 Building your own RUBiSVA 3 4 DEPLOYING RUBiSVA Figure 2 RUBiSVA deployment If you have followed the instructions so far you should have the following files inside etc xen auto autodeploy sh do_cross_config sh and check_finger_print sh You will work directly with the autodeploy sh You can run autodeploy sh as follow and it will display the usage Basically this script is based on scenarios If you open the file all the global variables are on the top Those will help you to configure your deployment The variable ALLIP is used to specify the pattern of your rubis_cluster AA LSSI ESE EEES ENE ENEE EEES NES EEES EEES EN 3 5 RU

Download Pdf Manuals

image

Related Search

Related Contents

取扱説明書  Manual do Utilizador  Danby SBCR016A2BSL User's Manual  [U4.72.06] Opérateur PROD_MATR_CHAM  User Manual    MANUAL DE INSTRUCCIONES  Y ENERG - Energy Sistem  ToolMod Pro Audio Module  NEWS IN BRIEF... - wersi  

Copyright © All rights reserved.
Failed to retrieve file