Troubleshooting a high-load scenario

Ulf Wiger (AL/EAB) ulf.wiger@REDACTED
Tue Jan 17 12:43:19 CET 2006


 
Joel Reymont wrote:
>
> I use selective receive and used to have no flow control in 
> my socket reader. It would just read packet length, read 
> packet and send the whole packet to its parent. Message 
> queues were filling up when I was doing that so I only read 
> the next network message once the current one has been processed.

Have you tried setting your socket reader to high priority?

  process_flag(priority, high).


I usually set middle-man processes to high priority since 
they don't originate any load anyway. They should do their
thing and get out of the way as quickly as possible.

Regards,
Uffe



More information about the erlang-questions mailing list