- Kartik Mistry: ૧૭ સવાલ 2013-11-29
* સરસ લેખ. જુઓ, સૌરભ શાહનો લેખ http://bombaysamachar.com/frmStoryShow.aspx?sNo=110385 સમય મળ્યે આ સત્તર સવાલોના જવાબ જાહેરમાં મૂકીશ. અરરર. જ્યારે હિંમત આવશે ત્યારે – જરૂર. અત્યારે તો કરેજ કાર્ટૂન જોઇ રહ્યો છું.
થેન્ક યુ, સૌરભભાઇ!
- Aravinda VK: Effective GlusterFs monitoring using hooks 2013-11-28
Let us imagine we have a GlusterFs monitoring system which displays list of volumes and its state, to show the realtime status, monitoring app need to query the GlusterFs in regular interval to check volume status, new volumes etc. Assume if the polling interval is 5 seconds then monitoring app has to run
gluster volume infocommand ~17000 times a day!
How about maintaining a state file in each node? which gets updated after every new GlusterFs event(create, delete, start, stop etc).
In this blog post I am trying to explain the possibility of creating state file and using it.
As of today GlusterFs provides following hooks, which we can use to update our state file.
create delete start stop add-brick remove-brick set
How to use hooks
GlusterFs hooks present in
/var/lib/glusterd/hooks/1directory. Following example shows sending message to all users using
wallcommand when any new GlusterFs volume is created.
Create a shell script
/var/lib/glusterd/hooks/1/create/post/SNotify.bashand make it executable. Whenever a volume is created GlusterFs executes all the executable scripts present in respective hook directory(Glusterfs executes only the scripts which filename starting with 'S')
#!/bin/bash VOL= ARGS=$(getopt -l "volname:" -name "" $@) eval set -- "$ARGS" while true; do case $1 in --volname) shift VOL=$1 ;; *) shift break ;; esac shift done wall "Gluster Volume Created: $VOL";
Experimental project - GlusterWeb
This experimental project maintains a sqlite database
/var/lib/glusterd/nodestate/glusternodestate.dbwhich gets updated after any GlusterFs event. For example if a GlusterFs volume is created then it updates volumes table and also bricks table.
This project depends on glusterfs-tools so install both projects.
git clone https://github.com/aravindavk/glusterfs-tools.git cd glusterfs-tools sudo python setup.py install git clone https://github.com/aravindavk/glusterfs-web.git cd glusterfs-web sudo python setup.py install
setup, this tool will install all the hooks which are required for monitoring. (
cleanupis for removing all the hooks)
sudo glusternodestate setup
All set! now run
glusterwebto start webapp.
Web application starts running in
http://localhost:8080you can change the port using
sudo glusterweb -p 9000
Initial version of web interface.
Authentication: Option to provide username and password or access key while running glusterweb, For example
sudo glusterweb --username aravindavk --password somesecret # or sudo glusterweb --key secretonlyiknow
More gluster hooks support: we need more GlusterFs hooks for better monitoring(refer Problems below)
More GlusterFs features support: As a experiment UI only lists volumes, we need improved UI and support for different gluster features.
Actions support: Support for volume creation, adding/removing bricks etc.
REST api and SDK: Providing REST api for gluster operations.
Many more: Not yet planned :)
State file consistency: If glusterd goes down in the node then the database will have wrong details about node's state. One workaround is to reset the database if glusterd is down using a cron job, when glusterd comes up, database will not gets updated and the database will have previous updated details. To prevent this we need a glusterfs hook for
More hooks: As of today we don't have hooks for volume down/up, brick down/up and other events. We need following hooks for effective monitoring glusterfs.(Add more if anything missing in the list)
glusterd-start peer probe peer detach volume-down volume-up brick-up brick-down
Let me know your thoughts! Thanks.
- Prakash Advani: OpenStack Keen On Indian Market 2013-11-28
OpenStack, a non-profit organization promoting open source cloud computing software, wants to increase its presence in India.
The organization has formed a three -pronged strategy—launching new products and features, tapping organizations deploying cloud computing, and training the vast channel base of its alliance partners who have a strong presence in the country.
Mark Collier, COO, OpenStack, affirmed, “After the US, India and China are the most important countries for us. We will target the large organizations that are either in the process of deploying, or have a cloud computing strategy in place. And cloud computing requires a lot of business transformation because of the cultural shift and dramatic changes in processes.”
- Kartik Mistry: અપડેટ્સ – ૧૧૩ 2013-11-28
* આજ-કાલ સિંગાપોરમાં બેઠો-બેઠો સિંગ ખાઇ રહ્યો છું અને અત્યંત વ્યસ્ત (મોશી, મોશી) હોવાથી કોઇ નવી પોસ્ટ લખી શકાતી નથી. આ લખી રહ્યો છું ત્યારે મોઢાં અને માથામાં ભયંકર પરસેવો થઇ રહ્યો છું. કારણ કે, અહીં પંખો નથી અને એસીનું રિમોટ મળતું નથી (ઓકે, મને થોડી શરદી થઇ લાગે છે).
* સિંગાપોર સરસ છે, મોંઘું છે, ચોખ્ખું છે અને રહેવાલાયક છે. આજે પહેલી વાર અહીં નાનકડી દોડ કરી અને મજા આવી ગઇ. જોકે ભેજ બહુ હોવાથી મેરેથોન દોડવી અઘરી છે અને રે (અ)મારા નસીબ, પછી ખબર પડી કે ૧લી તારીખે સિંગાપોરમાં મેરેથોન છે હવે શું થાય? એ જ દિવસે તો અમે પાછાં આવવાનો કાર્યક્રમ બનાવીએ છીએ (અહીં અમે = હું, એમ ધારી લેવું!).
* થોડા દિવસોથી ઘણું શીખવા મળી રહ્યું છે. પાછા આવતી વખતે અહીં કરેલી ખરીદી કરતાં અહીંથી મેળવેલું જ્ઞાન વધુ કિંમતી હશે.
* આજનું અને આવતી કાલનું ડિનર સ્પેશિયલ છે. હવે થોડો બ્લોગ માટે સમય મળશે એટલે ફરીથી કાલે અને પરમ દિવસે પોસ્ટ આવવાની શક્યતા ખરી. ચાલો ત્યારે, આવજો. આજે સમય મળે તો અહીંની કોઇ પુસ્તકોની દુકાન શોધવી છે, અત્યાર સુધી જાણવા મળ્યા પ્રમાણે અહીં લોકોને બહુ વાંચવાનો સમય મળતો જ નથી. અને હા, ફોટાઓસ્ કાલે.
- Shirish Agarwal: Real estate, linkedin.com and FOSS financial softwares 2013-11-28
- Hi all, This would be a longish thread about different things happening in and around me, some things a reality check, while others having much more potential. Having your own house is a dream for lot of people in the world . Most of the major population resides in places as tenants for their whole […]
- Kushal Das: Searching my blog 2013-11-26
More than a month back, I added a small scale search engine which indexes only my blog entries, you can access it either using search box in the page or from search.
It is still very initial stage of the service, the indexer is in Python and the web service is written using golang (less then 200 lines, includes few lines of html too).
I still have to work on the ranking algorithm, right now it is very generic.
- Arky: Vietnamese Language Tools: Developing Keyboards and Spell-checker 2013-11-26
Mentoring Mozilla Vietnamese localization team to develop Vietnamese keyboard and spell checker for Firefox OS. We built and tested Vietnamese keyboard during Mozilla Vietnam L10N sprints in Hanoi. We will integrate this into Firefox OS after Mozilla UX team improves the keyboard design to accommodate large set of alternative character keys.
Lewtds created Vietnamese spell checker using the Ho Ngoc Duc's word list. The Vietnamese language processing work is very limited. We haven't found any good data to that create a frequency list for the Vietnamese spell checker. Any pointers would be much appreciated.
Please read the Mozilla FirefoxOS keyboard documentation to learn more about developing keyboards in your language.
- Kartik Mistry: હેપ્પી એનિવર્સરી! 2013-11-25
- Anisha Narang: Rails Girls + vodQA at ThoughtWorks, Pune 2013-11-24
Knowledge should be for all, not just for the few. ThoughtWorks believes in sharing and invites you to events like Rails Girls, vodQA and more. If one finds an interesting upcoming event to be held at ThoughtWorks, Pune, I feel one should not miss the chance to be there for a day. The events conducted by them are fun-filled and knowledge-sharing, wouldn’t you like to have fun while sharing knowledge? The work area at ThoughtWorks adds to everything that happens throughout the day. Thought Workers call the place as their second home. The environment is simply awesome for events such as Rails Girls and vodQA, the two events which I attended till now.
Rails Girls, Pune (on August 24, 2013) was my first time to ThoughtWorks and was an amazing day midst a number of girls at some tech event. This event invites a maximum number of female participants as the name itself calls. This was a one-day workshop where you could dive into the magical world of Ruby on Rails. Registrations, breakfast and the keynote went well. All the attendees were supposed to occupy their table(with seats around) according to the number card that was handed over at the time of registration. There were around 8-10 participants on one table and 2-3 mentors which made a good rails girl: mentor ratio. Then there was an introductory session by the mentor which included introduction and installations. Then arises a common question “How do I start learning ruby quickly?” and here we have the obvious answer “Try tryruby.org!”. And there you go learning ruby. This was followed by work sessions throughout the day where one had to create an application and showcase the same at the end of the day. The lightening talks were again a part of the day and interesting. Not to forget, the food at lunch and cup cakes at snack time were really good. Chicken Dance was the most entertaining and happy time of the day. Now arrives the time to showcase your application, I had a thought and made a rails application “Thoughts at Thought works” which was supposed to be a portal for putting up your thoughts along with your name and a relevant picture. One of the reasons that many liked my application was that I highlighted a message from one of the lightening talks which said:
The pictorial representation of the thought left an impression and the session ended pretty well. It was an amazing day networking with many people and gaining knowledge about Ruby on Rails. As I mentioned earlier as well, a fun-filled knowledge-sharing weekend it was
The second time I happened to visit ThoughtWorks was for vodQA(on October 19,2013) which was an event especially for QAs. The keynote synced well with the theme “Faster| Smarter| Reliable“. The event was well organized with three parallel tracks scheduled for 30-minute talks, lightning talks, workshops and Open Spaces. The icebreaker game was interesting which made each one interact with others. I really liked the vodQA t-shirts but they were for organizers and speakers less the participants . I attended a few talks which covered various aspects of testing but was more busy socializing with people around. Nevertheless the talks(referring to the title of talk) were drawing more of attention. One of the interesting statement from a lightening talk was “There is nothing absolute in this world apart from Absolut Vodka”.
One thing which I noticed was that Thought Workers along with doing a lot of pair programming at work, they paired up for their talks as well. Also, most of the speakers were fond of the Test Pyramid. The Open Spaces concept was another good idea which was open to all for an open discussion on the topic of their choice. And again, lightening talks were interesting. Ah, coming to the feedback part, ThoughtWorks really worked out well in keeping both the electronic as well as the paper mode feedback systems. The anchors did not miss a chance to ask all the attendees for feedback. Somewhere the credit goes to the anchors as well in conducting the event well. The day ended with some more networking.. and it was pleasing to know that people remembered me from Rails Girls event. I simply loved both the events at ThoughtWorks and looking forward to more