Hosting Go on nearlyfreespeech.net

770 views
Skip to first unread message

Andrew Gerrand

unread,
Feb 27, 2012, 11:46:13 PM2/27/12
to golang-nuts
nearlyfreespeech.net is a cheap "pay for what you use" web host that
supports CGI. Recent changes to the Go runtime make it possible to run
Go programs as CGI scripts on their servers. I wrote up some short
instructions demonstrating how to get started:

http://nf.nfshost.com/

Andrew

axe

unread,
Feb 27, 2012, 11:56:03 PM2/27/12
to golang-nuts
Great!
Hosting for Go!

Andrew Gerrand

unread,
Feb 28, 2012, 12:00:25 AM2/28/12
to axe, golang-nuts
On 28 February 2012 15:56, axe <awu...@gmail.com> wrote:
> Great!
> Hosting for Go!

There is also a rather more useful host for Go web applications,
Google App Engine:

http://code.google.com/appengine/docs/go/gettingstarted/

Andrew

Chingli

unread,
Feb 28, 2012, 5:23:24 AM2/28/12
to golang-nuts
I just build this code locally and upload the object .cgi file to my
virtual host on bluehost, and find it work well.

On 2月28日, 下午12时46分, Andrew Gerrand <a...@golang.org> wrote:

André Moraes

unread,
Feb 28, 2012, 7:21:40 AM2/28/12
to golang-nuts
Sometime ago somebody posted on this list that heroku could serve
pages from Go binaries too.

--
André Moraes
http://andredevchannel.blogspot.com/

Jim Whitehead II

unread,
Feb 28, 2012, 8:52:58 AM2/28/12
to André Moraes, golang-nuts
2012/2/28 André Moraes <and...@gmail.com>:

Yes, there's an experimental buildpack for Go on Heroku cedar stack!

Remi Gillig

unread,
Feb 28, 2012, 10:19:30 AM2/28/12
to golang-nuts
What recent changes allowed this? I have been able to launch on my own
host (OVH) since r59 I think.

minux

unread,
Feb 28, 2012, 10:24:27 AM2/28/12
to Remi Gillig, golang-nuts
On Tue, Feb 28, 2012 at 11:19 PM, Remi Gillig <remig...@gmail.com> wrote:
What recent changes allowed this? I have been able to launch on my own

Remi Gillig

unread,
Feb 28, 2012, 10:32:58 AM2/28/12
to minux, golang-nuts
Neat ! I remember now that I needed a special wrapper script to set the virtual memory to "unlimited" before launching my Go program.

Russ Cox

unread,
Feb 28, 2012, 2:38:31 PM2/28/12
to Remi Gillig, minux, golang-nuts
On Tue, Feb 28, 2012 at 10:32, Remi Gillig <remig...@gmail.com> wrote:
> Neat ! I remember now that I needed a special wrapper script to set the
> virtual memory to "unlimited" before launching my Go program.

You can do that? I would not have bothered with that CL.
You are probably going to get better results with your approach.

Russ

Remi Gillig

unread,
Feb 28, 2012, 5:04:33 PM2/28/12
to r...@golang.org, minux, golang-nuts
Yes, I don't remember who suggested it on this mailing list but here is the script I used :

#!/bin/bash
ulimit -v unlimited
exec ./site

This seemed to work quite well on my web host.

I'm curious as to why it was such a bother as you say?

David Symonds

unread,
Feb 28, 2012, 5:11:34 PM2/28/12
to r...@golang.org, Remi Gillig, minux, golang-nuts

Remi is not using nearlyfreespeech.net. I don't know of OVH, nor
whether it's Linux or FreeBSD or something else.


Dave.

David Anderson

unread,
Feb 28, 2012, 5:32:09 PM2/28/12
to r...@golang.org, Remi Gillig, minux, golang-nuts
On Tue, Feb 28, 2012 at 11:38 AM, Russ Cox <r...@golang.org> wrote:
On Tue, Feb 28, 2012 at 10:32, Remi Gillig <remig...@gmail.com> wrote:
> Neat ! I remember now that I needed a special wrapper script to set the
> virtual memory to "unlimited" before launching my Go program.

You can do that?  I would not have bothered with that CL.

Depends. The administrator may limit the maximum virtual memory limit users can set for themselves. According to a brief internet search, total virtual memory usage is one of the only memory limits that linux has consistently enforced over time (vs. variable/no enforcement of resident/stack size), so it's somewhat attractive to sysadmins in combination with number-of-processes limits.

ulimit-style limitations are slowly being supplanted by more powerful controls (memory cgroups, cheap VM technology), but cheap shared web hosting still routinely applies hard address space limits.

- Dave
Reply all
Reply to author
Forward
0 new messages