Berkeley CSUA MOTD:Entry 41392
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2025/04/02 [General] UID:1000 Activity:popular
4/2     

2006/1/16-18 [Computer/SW/Languages/Java, Computer/SW/Languages/Misc] UID:41392 Activity:high
1/16    Okay, I have a technical question here. I administer a cluster
        of java webservers running jetty (not resin, sorry). They are behind
        a load balancer. They used to start up fine under "load" i.e. in
        the load balancer configuration. The latest code release
        broke this somehow and now they crash upon startup unless
        I remove them from the load balancer first. The programmers
        promised to fix this, but of course they did not and now
        they claim this is "industry standard." It is burdensome
        to me to have to remove them and then re-insert them every
        time I need to do a restart. Does anyone else run a java
        webserver cluster? Do you have to remove them from your
        load balancer everytime to start them up or restart them?
        I already STFW and could not find anything on the topic. -ausman
        \_ What I would do (I've been in similar situations):
           1) Escalate to CTO so he knows #2 is coming:
           2) "No, I can't bless this release because your P1 bug isn't
               fixed.  You'll have to explain to the CTO why this bug hasn't
               been foxed."  This will trigger a meeting where you can say:
           3) "This is an industry standard?  The code wasn't broken until
               release X.Y.Z on date MMDDYY which you said was going to be
               fixed.  Find me the IEEE, IETF or other industry standards
               body doc that says this is standard."
           If you don't push back hard on this you're only setting yourself
           up for even worse hassle down the road.  I've 'worked' with code
           monkeys like that before.  They're classic bullies.  Hit back hard
           immediately and be rude about it unless you want to be their ops
           bitch forever who has to kludge around their crap code.
           \_ Unfortunately, there is a tradition of kludging around bad
              code here that I am trying to change. Fortunately, we have
              a new CTO who supports my general philosophy on this.
        \_ Yes, and no. Since you didn't supply more information on how
           you're accomplishing load balancing, I have no idea how to
           fix your "problem".
           \_ Netscaler.
              \_ I assume it's something like a 9000 series. What's the
                 error you're getting when starting up resin? Can you get
                 a debug trace out of it?
                 \_ Yeah, 9000. All kinds of errors, untimately leading
                    to a server crash and restart which then crashes and
                    then tries to restart...
                    then tries to restart... I am trying to dig up the
                    exact error for you now. Actually, email me for details,
                    I don't want to post it on the motd.
        \_ That proves it isn't "industry standard".  Escalate and get the
           programmers whipped into shape.
        \_ They promised to fix it?  Do you have that in writing or in a bug
           tracking database?
           \_ No, but they promised in the code release meeting, where I
              have to sign off on code releases. I only agreed to let this
              code go live on the condition that they would fix it later.
              The CTO, who is in charge of both my group and programming,
              was there. So I definitely can push back if I want to, but
              I need evidence to make my case. It is probably true that it
              is less overall time to do the laborous restart than it is
              to fix the bug, at least in the short term.
              \_ Unless it's an architectural problem that will compound as
                 they continue to build on the existing architecture.
        \_ Sounds like an excellent opportunity to set up a script to handle
           updates.  Take node out of load balancing, restart it, test that it
           started cleanly, and then put back into balancing.   Been there,
           done that.
           \_ nonononononono!!!  do *not* *ever* kludge up something on the ops
              side because your coding team sucks.  Make them fix their code.
              If you want to tweak around with LB'd node status to maintain
              a 100% consistent site, for exmaple taking out half, updating
              them, putting them in a new pool, switching the VIP to that
              pool, then doing the remainder.  Ok, I guess.  You can be clever
              for stuff like that if there's some need.  But in this case, he's
              dealing with lazy code monkeys who are trying to force an ops
              policy change because they introduced a bug.  They need to be
              clubbed into submission.  This will not be the end of ops policy
              kludges to cover bad coding.  He'll regret covering for them.
              \_ bad coding happens.  you can deal with it and catch the
                 problem before you have your entire production cluster
                 spewing garbage, or you can let the bad code mess
                 everything up and get into a finger pointing pissing match.
                 OPS job is to keep stuff working.
              \_ bad coding happens.  you can deal with it and catch the problem
                 before you have your entire production cluster spewing garbage,
                 or you can let the bad code mess everythign up and get into a
                 finger pointing pissing match.  OPS job is to keep stuff
                 working.
                 \_ OPS job is to protect the site.  That includes making sure
                    crap code doesn't get pushed and pushing back hard on the
                    developers if it does.  His situation isn't finger
                    pointing.  The devs screwed the pooch and need to unscrew.
                    Slapping a condom on afterwards isn't going to fix
                    anything.
                    \_ What's wrong with doing both?  I assume he doesn't
                       have to TELL anyone he wrote the script. -!pp
                       \_ The short version: doing it right is better.
                          Don't lie about IT stuff.  Get busted once and your
                          already shakey credibility (you're in IT, right?)
                          is shot forever.
                          \_ I dunno, the exact details of how IT does its
                             job is not really usually that interesting to
                             engineering. I don't think you need to tell anyone
                             about all your little operations scripts, but
                             don't lie if asked either.
                             \_ what would you say if someone asked you how
                                long it would take to write a kludge script?
                                it's a very likely question.  also, in some
                                places OPS will be working with engineering
                                and be more aware of how long the different
                                steps are taking even if they don't know the
                                details.  i don't know if that's jim's case
                                but anyway, i wouldn't go out of my way to
                                be too helpful in a situation like this.  the
                                new CTO was likely brought in *because* the
                                board or CEO or whoever understands the code
                                base is broken.  C*O changes aren't common.
                                if so, then OPS can help the guy do his job
                                which will make OPS future much happier or
                                continue down the same path to piling more and
                                more madness on top.  my philsophy is this:
                                don't do anything you'd say was garbage if
                                someone else did it and you were the new guy
                                taking over that job.
        \_ What load balancer?  HTTP keep-alives work decently well for us.
           If it's not answering to the load balancer, it won't be in the
           pool.
ERROR, url_link recursive (eces.Colorado.EDU/secure/mindterm2) 2025/04/02 [General] UID:1000 Activity:popular
4/2     

You may also be interested in these entries...
2013/4/29-5/18 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Compilers] UID:54665 Activity:nil
4/29    Why were C and Java designed to require "break;" statements for a
        "case" section to terminate rather than falling-through to the next
        section?  99% of the time poeple want a "case" section to terminate.
        In fact some compilers issue warning if there is no "break;" statement
        in a "case" section.  Why not just design the languages to have
        termination as the default behavior, and provide a "fallthru;"
	...
2013/3/5-26 [Computer/SW/Languages/Java] UID:54618 Activity:nil
3/5     Three emergency Java updates in a month. Why do I have a feeling
        that the third one won't be the last one?
        \_ Bingo!
	...
2012/12/18-2013/1/24 [Computer/SW/Languages/Perl] UID:54561 Activity:nil
12/18   Happy 25th birthday Perl, and FUCK YOU Larry Wall for fucking up
        the computer science formalism that sets back compilers development
        back for at least a decade:
        http://techcrunch.com/2012/12/18/print-happy-25th-birthday-perl
        \_ I tried to learn Perl but was scared away by it.  Maybe scripting
           lanauages have to be like that in order to work well?
	...
2012/8/29-11/7 [Computer/SW/Security] UID:54467 Activity:nil
8/29    There was once a CSUA web page which runs an SSH client for logging
        on to soda.  Does that page still exist?  Can someone remind me of the
        URL please?  Thx.
        \_ what do you mean? instruction on how to ssh into soda?
           \_ No I think he means the ssh applet, which, iirc, was an applet
              that implemented an ssh v1 client.  I think this page went away
	...
2011/12/8-2012/1/10 [Computer/SW/Languages/Java, Computer/SW/Security] UID:54252 Activity:nil
12/8    Java code much worse IRL than pretty much everything else:
        http://preview.tinyurl.com/d5e46cq [ars technica]
	...
2011/4/16-7/13 [Computer/SW/Languages/Python] UID:54086 Activity:nil
4/16    Whoa, I just heard that MIT discontinued 6.001 (classic scheme)
        to 6.01. In fact, 6.00, 6.01 and 6.02 all use Python. What the
        hell? What has the world become? It's a sad sad day. SICP forever!
        \_ old story, they've ditched that shitty book and lang for a while.
        \_ I used to think scheme was cool, then I saw Ka Ping Yee's
           "Beautiful Code" class aka 61a in python, and converted.
	...
2011/2/24-4/20 [Computer/SW/Languages/Java] UID:54048 Activity:nil
2/24    Go Programming Language.  Anyone here use it?  It kind of
        reminds me of java-meets python, and well, that is fitting given it's
        a GOOG product.  What is so special about it?
        \_ as I understand it, it's a suitable OOP-y systems language with more
           structure than C, less complexity than C++, and less overhead than
           Java/Python.
	...
2010/8/8-9/7 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Web] UID:53914 Activity:nil
8/8     Trying to make a list of interesting features languages have
        touted as this whole PL field comes around, trying to see if they
        have basis in the culture of the time: feel free to add some/dispute
        1970 C, "portability"
        1980 C++, classes, oop, iterators, streams, functors, templates
             expert systems
	...
2009/12/5-26 [Computer/SW/Languages/Java] UID:53569 Activity:nil
12/4    what do people have their JAVA_HOME's set to on soda?
        \_ don't. are you trying to get sun java? It is installed, but not
           the default.  check dpkg -l and dpkg -L
           \_ I'm trying to run maven to get scala/lift.net working
              properly and it's complaining that JAVA_HOME is not set.
              \_ you probably want one of the directories in /usr/lib/jvm,
	...
2009/9/28-10/8 [Computer/SW/Languages/C_Cplusplus] UID:53409 Activity:nil
9/28    http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html
        Java is #1!!! Followed by C, PHP, C++, Visual Basic, Perl,
        C#, Python, Javascript, then finally Ruby. The good news is
        Pascal is going waaaay back up!
        \_ C is still more popular than C++?  I feel much better about myself
           now.
	...
2009/8/7-14 [Computer/SW/Languages/C_Cplusplus, Computer/SW/Languages/Java] UID:53252 Activity:high
8/6     In C one can do "typedef int my_index_t;".  What's the equivalent in
        C#?  Thanks.
        \_ C#? Are you serious? Is this what the class of 2009 learn?
           \_ No.  I have to learn .NET code at work.  I am Class of '93.
           \_ python is what 2009 learns, see the motd thread about recent
              cal courses and languages
	...
2009/7/21-24 [Computer/SW/Languages/Java] UID:53168 Activity:moderate
7/20    For those who care btw, it looks like eclipse is now A Standard Tool
        at UCB ugrad cs, probably replaced emacs.  Furthermore, people get
        angry at seeing Makefiles, (since eclispe takes care of that).  I
        guess it's just a sign of the times.
        \_ The more people at my work use eclipse the less the code is
           managable in emacs.  I'm not sure which application's fault
	...
2012/4/27-6/4 [Computer/SW/Languages/Misc, Computer/SW/Unix] UID:54372 Activity:nil
4/27    I wrote a little shell script to collect iostat data:
        #!/bin/bash
        DATE=`date +%m%d`
        DATADIR=/var/tmp/user
        OUTPUTFILE=$DATADIR/$DATE.out
        while true
	...
2012/5/8-6/4 [Computer/SW/Unix] UID:54383 Activity:nil
5/8     Hello everyone!  This is Josh Hawn, CSUA Tech VP for Spring 2012.
        About 2 weeks ago, someone brought to my attention that our script
        to periodically merge /etc/motd.public into /etc/motd wasn't
        running.  When I looked into it, the cron daemon was running, but
        there hadn't been any root activity in the log since April 7th.  I
        looked into it for a while, but got lost in other things I was
	...
2011/10/26-12/6 [Computer/SW/Unix] UID:54202 Activity:nil
10/24  What's an easy way to see if say column 3 of a file matches a list of
       expressions in a file? Basically I want to combine "grep -f <file>"
       to store the patterns and awk's $3 ~ /(AAA|BBB|CCC)/ ... I realize
       I can do this with "egrep -f " and use regexp instead of strings, but
       was wondering if there was some magic way to do this.
       \_ UNIX has no magic. Make a shell script to produce the ask or egrep
	...
2011/7/30-8/10 [Computer/SW/Languages/Misc] UID:54148 Activity:nil 66%like:54150
7/29    Happy Sysadmin Day
        \_ our "sysadmin" today deleted /home. When we asked her why
           she said she didn't do it. When I checked the sudo logs,
           I found these two commands in order:
               COMMAND=/bin/rm -r /home testuser
               COMMAND=/bin/rm -r /home/testuser
	...
2011/5/19-7/13 [Computer/SW/Languages/Misc] UID:54115 Activity:nil
5/19    If script A runs, and calls script B ..... is it possible for me to exit\
        script A based on results of script B and not continue?
        \_ assume any shell
        \_ Yes.
           \_ without passing the result to some stupid temp file?
              \_ It sounds like you want "scriptb || exit", which will run
	...
2010/4/22-5/10 [Computer/SW/Languages/Misc] UID:53797 Activity:nil
4/22    In Linux is there an easy way to rename the scripts in /etc/rc?.d ?
        For example I want to set all the /etc/rc?.d/S91apache to S100apache
        so that it'll run the ramdisk BEFORE going to apache.
        \_ Sure, just move them.
           \_ I mean is there a script that will rename all of them
              for me? Like: setrc apache2 0 0 1 1 1 1
	...
2009/10/27-11/3 [Computer/SW/Unix] UID:53475 Activity:nil
10/27   http://www.maxgames.com/play/flash-mind-reader.html
        how does this work?
        \_ sh -c 'for ((i=0;i<10;i++)); do for ((j=0;j<10;j++)); do echo "$i$j-(\
$i+$j)" | bc; done ; done' | uniq
        \_ bash -c 'for ((i=0;i<10;i++)); do for ((j=0;j<10;j++)); do echo "$i$j\
-($i+$j)" | bc; done ; done' | uniq
	...
2009/8/19-9/1 [Computer/SW/Unix] UID:53285 Activity:nil
8/18    Hi again, new freebsd guy here again, in bash I was able to go
        LD_LIBRARY_PATH=/opt/foo/lib ./runmyapp
        I managed to do this in tcsh by using setenv in a shell script
        that setenv's the lib path and then executes $1, just wondering
        if there was a way to do it in 1 line from the cmd line as in bash?
        Thanks, btw %2c or %3c worked.  Freebsd, tcsh and vi forever!
	...
2009/5/5-6 [Computer/HW/Laptop] UID:52950 Activity:moderate
5/5     Is there a good (or standard) way to make an offline copy of a w
        ordpress blog (mine, not someone else's)? tia.
        \_ oh man.
           \_ I could cobble something together with curl / wget, but I'd
              rather not if there is a standard way of doing this.  I'm
              pretty new to wordpress / blogging and I just want to keep
	...
2009/2/10-13 [Computer/SW/Security, Computer/SW/Unix] UID:52552 Activity:nil
2/10    I have an sh file that does a mount.. the mount does an
        authentication. I previosly stored the username and password
        from zenity prompts. However, I can't get a return on the password
        field. The following only works on the username:
        mount -t davfs "http://blahblah.com/BLahUser11" /mountdir << EOF
        ${username}
	...
2009/1/14-22 [Computer/SW/Languages/Perl, Computer/SW/Languages/Misc] UID:52378 Activity:nil
1/13    I want to extract a couple integer from an xml file, mainly,
        xml file from http://weather.com so I can put it on my xplanet marker
        file. has anyone done similar things (parse and extract data
        from xml) using shell script instead of python/perl?
        in the world of perl, it make sense to dump things into a hash
        which i can easily extract key/value pair.  can i achieve similar
	...
2008/12/18-2009/1/7 [Computer/SW/Mail] UID:52279 Activity:nil
12/18   Campus USENET service will be terminated on 12/31.
        http://ls.berkeley.edu/mail/micronet/2008/1608.html
        \_ I emailed RobR to tell him. -ausman
        \_ The CSUA is considering asking campus to allow us to run NNTP for
           ucb.class.*, as bSpace sucks major major ass. Thoughts? --t
           \_ That's noble, but maybe the effort would be better spent
	...