Home » Blog » Archives

Archive for 2003

Linotype 1.2

December 30th, 2003

There were major scalability concerns with Linotype 1.1 due to the poor file-system based content repository that was not able to handle metadata. For this reason, Linotype complexity was O(n) with the content contained in the repository and even less scalable for concurrent requests.

So, I have rewritten the way content is aggregated from the repository and now it’s now O(n) with the number of news, not with the content of them, still not perfect but a few orders of magnitude faster and much more scalable under heavy load.

Also, I’ve used the potentials of HTTPd much more and here is the httpd.conf file, in case you wonder:

# the modules you need for this to work
LoadModule headers_module modules/mod_headers.so
LoadModule setenvif_module modules/mod_setenvif.so
LoadModule rewrite_module modules/mod_rewrite.so
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule cache_module modules/mod_cache.so
LoadModule mem_cache_module modules/mod_mem_cache.so# Here I redirect to the SSL site (mounted on the same URI space) for the private section
# I do this to avoid password sniffers
RewriteEngine        on
RewriteRule          ^/~stefano/linotype/private/.* https://www.betaversion.org/~stefano/linotype/private/$1 [R]

# Here the properties are applied to the entire www.betaversion.org/ URL space
<Location />

# These are the configurations for mod_deflate that will GZIP encode
 # the output of everything generated in the / URL space
 SetOutputFilter deflate
 BrowserMatch ^Mozilla/4         gzip-only-text/html
 BrowserMatch ^Mozilla/4\.0[678] no-gzip
 BrowserMatch \bMSIE             !no-gzip !gzip-only-text/html
 SetEnvIfNoCase Request_URI     .(?:gif|jpe?g|png)$ no-gzip dont-vary
 Header append Vary User-Agent env=!dont-vary

# Here we mount linotype from Jetty running on port 8888 (which is
 # behind the firewall)
 ProxyPass        /~stefano/linotype/ http://localhost:8888/
 ProxyPassReverse /~stefano/linotype/ http://localhost:8888/

# These are mod_cache configurations
 CacheEnable mem /~stefano/linotype/
 CacheDefaultExpire 86400
  MCacheSize 4096
  MCacheMaxObjectCount 100
  MCacheMinObjectSize 1
  MCacheMaxObjectSize 2048

</Location>
 

Another lucky one

December 29th, 2003

It’s getting boring, I know, but I can’t resist saying that Google considers me another lucky one.

Permalink | Posted in Commentary
 

Apache Agora 1.2

October 9th, 2003

I’ve released a new version of Agora, the graph visualization tool I wrote last year. Radical changes allow a much improved usability, much nicer looking graphs, the ability to recognize clusters of nodes and the ability to zoom in.

I’ve already received very nice feedback and everybody is pleased of the new changes. There is already people trying to use Agora to describe different types of relationships inferred not only from email, but also from public key signing. I’m very curious to see what different uses people come up with for this. If you have any idea or use case, please let me know.