Hi Łukasz,

On Fri, 1 Mar 2013 13:04:22 +0100
Łukasz Mierzwa <[email protected]> wrote:

> 2013/3/1 Marcin Deranek <[email protected]>
> 
> > As far as I can see we still keep things as they were in respect to
> > hostname - the rest was nicely addressed: thank you. Are there any
> > plans to replace dots with underscore in hostname ?
> >
> 
> Can You paste sample config that gives you trouble? Looking at 1.4.6
> carbon plugin (current stable) I see that dots are replaced for
> automatic hostname, only --carbon-id set explicitly by user is not
> modified in any way. I'm little lost what was the behavior you wanted
> to have.

Ok. 2 things (1 major, 1 minor):
* As far as I can see (and just tried it with 1.4.6) right now as
  carbon hostname we use uwsgi.hostname which is taken from
  gethostname() call which on RedHat like systems is FQDN. Obviously
  this generates lots of subspace (one for each subdomain) eg.
  host1.sub1.sub2.sub3.com rather than host1_sub1_sub2_sub3_com
  My point here is that this is done automatically I do not have
  control over it.

  Some of my thoughts:
  Initially I patched carbon plugin and hijacked carbon-id where it
  replaced anything in front of it eg.
  carbon-id = my_root.my_hostname_i_like.and_my_id
  carbon-id was the only thing I needed to specify which was
  very flexible although it had it's own price: all the logic had to be
  put outside uwsgi (eg. proper carbon-id had to be put in the config)

  Another approach I could think of (to reduce number of options and
  give flexibility) would be some templating system where user can give
  single option as template eg.
  carbon-id = "sys.%h.uwsgi"
  Obviously problem is with macros as we might want to have short
  hostname, long hostname (with underscores) and possibly some more
  etc. Maybe something for the future, I don't know.

* The minor problem was already addressed as far as I can see: we do
  substitution, but only when we automatically generate carbon-id, so
  that's fine.
Regards,

Marcin
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to