| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
|
|
|
| |
Update tools: yexport
|
| |
|
|
|
|
| |
Update tools: yexport
|
|
|
|
|
|
| |
форвардится
Change std::move to std::forward
|
|
|
|
| |
заголовков
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
opensource
|
|
|
|
|
|
| |
Без этого, ydb или не сможет запускать flake8 с помощью ya make.
Или к ним поедет сборка flake8.
Возможно последнее и не так плохо, но сейчас предлагается пока так
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
I hereby agree to the terms of the CLA available at: https://yandex.ru/legal/cla/?lang=en
In addition to #89, there is one more minor fix. GCC doesn't allow putting `__attribute__((weak))` before the `extern "C"` and produces non-weak symbols. Proof: https://godbolt.org/z/h48fYsGMW
---
Pull Request resolved: #96
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
Add arrow writer
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
With single poller thread on incoming connections, every OS scheduler latency on this thread wakeup directly affects requests timings. With oneshot poll events, we can poll on the same poller from many threads, and, if one thread has stalled for some reason, some other will take it's work on the next incoming event. So:
- make vector of listener threads instead of single one;
- add nListenerThreads option;
- stop request queues and listening sockets from the last finished thread;
- check incoming options and set OneShotPoll if needed.
There is a problem around removing connections on MaxConnections limit or ExpirationTimeout. There is no simple way to safely remove items from epoll (https://lwn.net/Articles/520012/) if it has raw pointers in event data. Try to handle it via postponed deletion of connection objects, wait until all listener threads are ready to reenter poller wait and there are no threads where deleted object can be used:
- close socket immediately after remove from poller, but instead of immediate TClientConnection destruction, put it to "pending delete" list;
- add cleanup state with thread mask, each bit stating that corresponding thread should reenter poller;
- call Cleanup routine before each poller wait, it will switch to 0 current thread's bit for each pending connection;
- when thread mask becomes all zero, really delete the connection;
- force there is a timeout for poller wait, ensure that all threads do reenter;
- add more configurations for some tests.
There is no significant changes or overhead for standard case with single listener thread, cleanup and pending deletion are just skipped. Also there is no overhead for common case where removing connections is rare. Here is the same review with nListenerThreads = 4 by default https://a.yandex-team.ru/review/4413226.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
- apply one shot poll (under option) for listening socket too;
- some code rearrangements.
|
| |
|
| |
|
|
|
|
|
| |
removed a lot of typedefs and turned a couple of std::pairs into
something more meaningful
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
- move out listener and thread pools initialization stage from listener thread (no actual changes, this part of code was awaited via ListenStartEvent anyway) ;
- remove ListenerStartEvent and ListenerRunningOK flag, no use now;
- make Reqs list of listening sockets class member;
- leave Reqs list destruction in listener thread (it should happen just after Shutdown but after polling loop stopped to prevent races);
- ut for server startup fail.
|
| |
|
|
|
|
|
|
|
|
| |
With WaitReadOneShot:
- there is no need to do Unwait on connection activation, one less syscall per request;
- this allows to make several listener threads over one epoll poller.
Turn option on for search daemons (check it turned on by default here https://a.yandex-team.ru/review/4372795/details).
|
|
|
|
| |
Добавил в String UDF поддержку base32
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Minor cosmetic changes
space after for
space after if
|
| |
|
| |
|