Posted by Michael Hendrickx
on June 16, 2010
sysadmin,
web /
1 Comment
At Nakheel, we needed to load balance a new sharepoint instance. Our new sharepoint is single sign on, and was running on 2 web servers which needed to be load balanced. We played around with Apache for a while, and it’s awesome proxy balancer, but it gave us the problem that it was always asking for a username and password.
Apache was used, since I have a reasonable amount of experience with it load balancing servers such as Webrick, etc. After a few frustrating hours of messing with NTLM, Christian proposed a few alternatives for this.
Having this in mind, we decided to go for HAProxy, to provide load balancing and a reverse proxy for our sharepoint instance. The good this is that it is a very simple tool, it accept HTTP conenctions, and forward them.
Below is our simplified /etc/haproxy/haproxy.cfg file
global
maxconn 4096
user haproxy
group haproxy
daemon
# debug
defaults
mode http
option forwardfor
log 127.0.0.1 local0 notice
maxconn 2000
contimeout 5000
clitimeout 50000
srvtimeout 50000
backend sharepoint
balance roundrobin
option redispatch
cookie SERVERID insert nocache
server sp1 172.30.16.11:80 cookie spsrv01 weight 30 check
server sp2 172.30.16.12:80 cookie spsrv02 weight 30 check
frontend httpid
bind *:80
acl hosts_sharepoint hdr_end(host) -i intranet.domain.com
acl hosts_sharepoint hdr_end(host) -i intranet.domain.com:80
use_backend sharepoint if hosts_sharepoint
default_backend sharepoint
The configuration is very straightforward, and it got rid of our continuous username/password boxes, especially under firefox.
Hope this helps,
Michael
Tags: haproxy, linux, reverse proxy
Posted by Michael Hendrickx
on March 26, 2009
misc,
security,
sysadmin,
web /
3 Comments
I love SSH. SSH is the de-facto service for remote server management, especially in a CLI environment.
Being a avid Linux user, and spending quite a bit of time on OSX lately, I often SSH into several servers remotely. Being subject to “username conventions”, you don’t always share the same username across machines. And I always wondered how one could just type ssh hostname instead of providing the username.
Seems that, by creating a .ssh/config file with following contents:
Host server.example.com server
User username
WIll make life easier, as you can in the future only do a “ssh hostname”. I didn’t know this.
Posted by Michael Hendrickx
on October 31, 2008
internet,
web /
No Comments
Linked In, the professional social network introduced the possibility of using applications. Just as facebook, myspace and friendster did.
Linked in feels the threat of Facebook, especially combined with applications such as Kuhnektid to increase your professional “visibility” across the work. Most of linked-in users, are on facebook too.
A set of examples are there in their application directory. Tools such as file sharing, project collaboration, or being notified when one of your “contacts” is in the same city as you are there. No sight of a SDK yet, and no superpokes either.
yet.
Let’s see how users adapt to this.
Thanks,
Michael
Tags: apps, facebook, linked in, linkedin, sharing, social network, web2.0
Posted by Michael Hendrickx
on October 03, 2008
internet,
web /
No Comments
Microsoft is entering the cloud computing zone pretty soon. It was announced yesterday and will hit the public a month from now with it’s new OS, Windows Clouds (yeh.).
It’s feeling the ppressure from easy to use, browser only, applications such as Gmail, google docs and the like.
I wish Microsoft (or anyone) would come out with an enterprise cloud platform, not on the Internet. I am sure there are more users who wish to make a storage cloud on their network. Or am I the only one?
Thanks,
Michael
Tags: cloud, cloud computing, microsoft, windows, windows clouds
Posted by Michael Hendrickx
on September 06, 2008
web /
No Comments
CSS Optimizer is a tool that will shrink your CSS files and shave off a few kilobytes. I tested a few CSS files on places.ae and, shamefully, saw an average of 33% improvement that’s possible. (Though not as bad as some other sites: salik (49%) and dubai police (62%)).
Very useful tool, especially on mobile sites or sites where bandwidth is an important factor.
Tags: css, css optimizer, design, html