Commit graph

10 commits

Author SHA1 Message Date
Pengcheng Xu
ce67c5b30e
[Code] Add Java security manager options for Java langserver (#45862)
* [Code] Add Java security manager options for Java langserver

* [Code] Fix typo

* Fix some minor issues

* Adapt to new platform
2019-10-14 21:25:07 +08:00
Yulong
871601b20c
[Code] replace nodegit with native git (#45491)
* [Code]  use native git to iterate git files
* [Code] use native git to clone/update repository
* [Code] git history using native git
* [Code] use native git to read file tree and file content
* [Code] fix the 'bad file' warning from status api
* [Code] use native git to handle worktree
* [Code] use native git to resolve references
* [Code] use native git to handle blame / diff
* [Code] patch git binaries in kibana build script
* [Code] migrate unit tests to use native git
2019-10-11 11:32:03 +08:00
Yang Yang
522502b4f2
[Code] refactored the queue to process tasks belong to local node only. (#42601)
* [Code] a MVP implementation to support cluster mode code deployment with manually configured static routing table.

1. add a ClusterNodeAdapter
2. add the abstraction of ClusterService to manage cluster state and support event listening.
3. add the abstraction of ClusterMembershipService to manage the members in the cluster.
4. add the abstraction of ResourceScheduler to allocate resources to nodes, and implement a hash based resource allocation policy.
5. added ResourceSchedulerService to watch the change of cluster states and trigger resource allocations.
6. support request handling based on the routing table.

Fixed jobs filtering in Worker._getPendingJobs().
As Array.filter() doesn't support async callbacks, rewrite with a loop.
2019-08-23 09:52:08 +08:00
Mengwei Ding
1562e6289a
[Code] disk watermark supports percentage and absolute modes (#42987)
* [Code] disk watermark supports percentage and absolute modes

* add unit tests

* use percentage mode by default
2019-08-09 11:56:11 -07:00
Mengwei Ding
bc9d0d325b
[Code] disk watermark check for clone and update (#42174)
* [Code] disk watermark check

* apply disk check

* switch to one config

* Add i18n

* Add unit tests

* update i18n message id
2019-07-31 11:48:52 -07:00
Mengwei Ding
6c04861841
[Code] Initial server side refactor to shim the new platform server API (#41192)
* [Code] introduce a RequestFacade interface to decouple hapi.Request

* Add a RequestQueryFacade

* completely remove hapi dependencies from code

* Refactor init.ts to comply with the new platform plugin API

* more refactoring

* fix tests

* fix type errors
2019-07-29 23:59:35 -07:00
Mengwei Ding
ab5a848226
[Code] remove the disableIndexScheduler flag (#42179) 2019-07-29 19:27:15 -07:00
Mengwei Ding
c3b8142f8f
[Code] reenable code mocha tests (#40189)
* [Code] reenable code mocha tests

* skip multi node test
2019-07-02 23:15:28 -07:00
Fuyao Zhao
a555e676eb
[Code]: re-enable all certificate checks (#39634) 2019-06-25 23:00:38 -07:00
Court Ewing
7ac8e4d9cc Move x-pack plugins/server/common to x-pack/legacy 2019-06-20 13:34:48 -04:00
Renamed from x-pack/plugins/code/server/test_utils.ts (Browse further)