> On Thu, 17 Jan 2013 10:56:18 +0100
> Marcin Deranek <[email protected]> wrote:
>
>> On Thu, 17 Jan 2013 09:58:24 +0100
>> Łukasz Mierzwa <[email protected]> wrote:
>>
>> > Sorry, I didn't noticed those links at the bottom.
>>
>> No problem.
>>
>> > I see that dots are replaced with underscores only if You do not
>> > specify --carbon-id, so You can manually set this to whatever You
>> > like. I could make a patch that adds ability to specify a char that
>> > will be used as a replacement for all dots in automatically guessed
>> > hostname.
>>
>> I think for now this would do.. Ideally (in this and some other cases
>> like eg. procname) I would love to see some kind of name templating
>> which would greatly reduce number of options and provide much greater
>> flexibility.. But that's maybe for the future...
>> Thank you Łukasz.
>
> Some other thing which I noticed with 1.4.6 & 1.9: when carbon plugin
> sends "aggregated-only" metrics things seem to be working just fine..
> Unfortunately to troubleshoot specific problem I had to enable metrics
> on per-worker basis. Considering there are ~10 metrics per worker and
> 100+ workers (yes, we send metric for cheaped workers too) we quickly
> ended up with lots of these (uWSGI 1.4.6):
>
> Tue Feb 26 04:02:49 2013 - write(): Resource temporarily unavailable
> [plugins/carbon/carbon.c line 101]
>
> which most likely is due to the fact that output buffer is full and we
> write in non-blocking mode. I suspect that as a side effect of the above
> problem we send some malformed metrics eg.
>
> instead of uwsgi.* we have uwsuwsgi.* or uwuwsgi.* and all sorts of
> other combinations of truncated metrics.
> Is they any way to workaround it / fix it ?
> Regards,
>
> Marcin
> _______________________________________________
> uWSGI mailing list
> [email protected]
> http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi
>

in 1.9 you can just use

int uwsgi_write_nb(int fd, char *buf, size_t remains, int timeout);

instead of write() in carbon_write()

in 1.4 it should be better to manually rewrite it.

Another (faster) solution would be putting the carbon socket in blocking mode

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

Reply via email to