summaryrefslogtreecommitdiffstats
path: root/config
Commit message (Collapse)AuthorAgeFilesLines
...
* - Remove provider, Handler,Waitable, PollAble, Interruptable as separate ↵Henning Baldersheim2022-03-0311-125/+22
| | | | | | | interface. - Hold the lock when closing the ConfigHolder so that noone risk getting stuck inside the wait_until. - Use wait_until instead of poll.
* Merge pull request #21526 from ↵Henning Baldersheim2022-03-032-5/+5
|\ | | | | | | | | vespa-engine/vekterli/make-config-retriever-closed-polling-atomic Make ConfigRetriever closed-state polling atomic
| * Make ConfigRetriever closed-state polling atomicTor Brede Vekterli2022-03-032-5/+5
| |
* | Add noexceptHenning Baldersheim2022-03-033-11/+11
| |
* | Inline small gettersHenning Baldersheim2022-03-036-53/+18
|/
* relative std::this_thread::sleep_for is more efficient than absolute ↵Henning Baldersheim2022-03-031-2/+2
| | | | std::this_thread::sleep_until. This is the opposite of std::condition_variable::wait_until/wait_for.
* Use wait_until deadline to reduce number of times we need to sample the clock.Henning Baldersheim2022-03-0211-68/+74
|
* Add a simple adjustTimeoutByDetectedHz to compute a suitable timeout/naptime ↵Henning Baldersheim2022-02-281-1/+1
| | | | | | based on base VESPA_TIMER_HZ to use for random waiting when doing a poll based appraoch.
* Remove inlining warnings (config).Tor Egge2022-02-264-1/+9
|
* Move start and run into separate method to properly scope lifetime of ↵Henning Baldersheim2022-02-252-1/+10
| | | | objects and shutdown common transport last.
* Revert "Revert "- Create the common transport and threadpool in the main loop.""Henning Baldersheim2022-02-242-11/+36
|
* Revert "- Create the common transport and threadpool in the main loop."Henning Baldersheim2022-02-242-36/+11
|
* - Create the common transport and threadpool in the main loop.Henning Baldersheim2022-02-242-11/+36
| | | | | - Also use the common transport for config subscriptions. - Put The TransportConfig in the fnet namespace.
* Ensure that the transport thread has longer lifetime than the FRTConnectionPool.Henning Baldersheim2022-02-222-41/+31
|
* Revert "Revert "Add support for creating ConfigContext with externally ↵Henning Baldersheim2022-02-2217-65/+105
| | | | provided FNET_…""
* Merge pull request #21324 from ↵Henning Baldersheim2022-02-2217-105/+65
|\ | | | | | | | | vespa-engine/revert-21318-balder/allow-creating-config-context-with-provided-transport Revert "Add support for creating ConfigContext with externally provided FNET_…"
| * Revert "Add support for creating ConfigContext with externally provided ↵Henning Baldersheim2022-02-2217-105/+65
| | | | | | | | FNET_…"
* | Merge pull request #21297 from ↵Henning Baldersheim2022-02-221-2/+8
|\ \ | |/ |/| | | | | vespa-engine/toregge/handle-higher-resolution-for-steady-clock-duration Use duration_cast to handle steady clock and system clock having different periods.
| * Add comment about why duration_cast is needed.Tor Egge2022-02-221-0/+6
| |
| * Use duration_cast to handle steady clock and system clock having differentTor Egge2022-02-211-2/+2
| | | | | | | | periods.
* | Add support for creating ConfigContext with externally provided ↵Henning Baldersheim2022-02-2217-65/+105
| | | | | | | | FNET_Transport object
* | Merge pull request #21295 from ↵Henning Baldersheim2022-02-223-20/+22
|\ \ | | | | | | | | | | | | vespa-engine/revert-21294-revert-21281-balder/use-common-transport Revert "Revert "Use a common FNET_Transport owned by Proton in both SceduledExecutor …""
| * | Revert "Revert "Use a common FNET_Transport owned by Proton in both ↵Henning Baldersheim2022-02-213-20/+22
| |/ | | | | | | SceduledExecutor …""
* / Fix forward declaration.Tor Egge2022-02-211-1/+1
|/
* Revert "Use a common FNET_Transport owned by Proton in both SceduledExecutor ↵Henning Baldersheim2022-02-213-22/+20
| | | | …"
* Merge pull request #21281 from vespa-engine/balder/use-common-transportHenning Baldersheim2022-02-213-20/+22
|\ | | | | Use a common FNET_Transport owned by Proton in both SceduledExecutor …
| * Use a common FNET_Transport owned by Proton in both SceduledExecutor and ↵Henning Baldersheim2022-02-203-20/+22
| | | | | | | | | | | | | | | | | | | | TransactionLogServer. This reduces the number of Transport object by 1 per document type and netto 1 in Proton. Each of them contains 2 threads. In addition it uses a common Transport for the RpcFileAcquirer objects used during config fetching. This prevents creating 3 temporary Transport objects on every reconfig.
* | Make ConfigUri constructors explicit and use same context where possible in ↵Henning Baldersheim2022-02-202-19/+2
|/ | | | proton.
* Reduce code visibility and some UP typedefs.Henning Baldersheim2022-02-1821-78/+80
|
* Unify on using vespalib::duration.Henning Baldersheim2022-02-1854-391/+312
|
* Add a base vespa timer frequency that is used as a base to control poll ↵Henning Baldersheim2022-02-172-13/+14
| | | | frequency of various tasks.
* If timeout has already expired, no need to take expensive time samples.Henning Baldersheim2022-02-161-2/+7
|
* Merge pull request #21237 from ↵Henning Baldersheim2022-02-161-3/+3
|\ | | | | | | | | vespa-engine/balder/if-queue-is-empty-no-need-to-check-again If the queue is empty, avoid an extra poll which will do both an extr…
| * If the queue is empty, avoid an extra poll which will do both an extra time ↵Henning Baldersheim2022-02-161-3/+3
| | | | | | | | conversion and take a lock.
* | If timeout is zero or negative there is no need to make a costly call to ↵Henning Baldersheim2022-02-161-13/+21
|/ | | | sample the time.
* Include needed header files.Tor Egge2022-02-141-0/+1
|
* SimplifyHarald Musum2022-02-101-2/+1
|
* Handle previous config being null when setting new configHarald Musum2022-02-101-4/+5
| | | | | Handle previous config being null (i.e. not configured before when checking for unexpected change in config)
* Add namespace to filenameHarald Musum2022-02-091-0/+2
|
* Refactor to avoid code duplication.Henning Baldersheim2022-02-082-16/+6
|
* Add noexcept to move constructors.Henning Baldersheim2022-02-082-13/+6
|
* - Generate mode modern c++ code.Henning Baldersheim2022-02-0821-132/+176
| | | | | - Use existing predefined types. - Allow for better management by allowing large string vectors to be mmapped.
* Revert "Fail if schema file cannot be opened"Harald Musum2022-02-071-9/+4
|
* Merge pull request #21082 from vespa-engine/balder/reduce-code-visibilityHenning Baldersheim2022-02-07112-518/+563
|\ | | | | Reduce code visibility and include only what you need from config lib…
| * Add explicit on constructor and deinline destructors.Henning Baldersheim2022-02-079-19/+32
| |
| * Reduce code visibility and include only what you need from config library.Henning Baldersheim2022-02-06112-516/+548
| |
* | Merge pull request #21093 from vespa-engine/bjorncs/dont-use-interruptsBjørn Christian Seime2022-02-073-1/+27
|\ \ | | | | | | Bjorncs/dont use interrupts [run-systemtest]
| * | Throw exception if subscriber is invoked after it's closedBjørn Christian Seime2022-02-073-1/+27
| |/
* / Fail if schema file cannot be openedHarald Musum2022-02-071-4/+9
|/
* Merge pull request #21067 from ↵Henning Baldersheim2022-02-041-12/+25
|\ | | | | | | | | vespa-engine/hmusum/always-use-schema-in-vespa-get-config Use installed config schema if none is given as option