It's Ruby, and it's on Rails!

 So, I've successfully configured JRuby and Rails, at least enough to get my "Welcome Aboard" page. Unfortunately, it doesn't seem to be configured enough for me to successfully launch it from within my extremely stripped-down testing framework. Still working on getting that to work, since testing your code is a good idea.

  What is it that I'm testing, you ask? Somewhere at the bottom of the Glassfish support for JRuby, there is a pool of JRuby runtimes waiting around to pick up incoming requests and process them. As of now, it's a fixed-size pool, and I've been tasked with making it dynamically grow and shrink to provide more runtimes during high-load periods while not consuming excessive memory during low-load periods. It's lead to some quite interesting reading about how pools in general work (remember, I'm a new college graduate: this is my first time working on a large-scale piece of multithreaded software), and I've already started thinking about how to apply AI to the pool to try to predict when runtimes should be kept around and when they should be generated before new requests come in. Right now, though, I'm focusing on getting a pool that resizes in a basic and predictable way up and running. The version that will play grandmaster chess while Glassfish is sitting idle will have to wait for another time.

 I'm actually quite happy that my first coding assignment is something that, while nobody will notice that it exists (hopefully), it is still an important part of the Glassfish scripting support, as opposed to something along the lines of "go hunt down this minor bug somewhere" or something like that. Of course, that probably reduces the time before I first take down the trunk with a bad code submission, but that's what revert is for.

Comments:

Welcome aboard! Great to have you on the scripting team! Nice blog! You sound like a blogging pro already :-)

Barbara

Posted by Barbara Louis on August 19, 2008 at 10:34 AM PDT #

[Trackback] Jacob Kessler is a new hire in GlassFish Scripting team and is blogging, welcome Jacob! Read how he will apply Aritificial Intelligence prinicples for dynamic configuration of JRuby runtime pools in GlassFish :) Technorati: glassfish rubyonrails dynami...

Posted by Arun Gupta's Blog on August 19, 2008 at 11:19 PM PDT #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Jacob Kessler

Search

Categories
Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today