Commit Graph

10 Commits

Author SHA1 Message Date
Stefan Hengl
8305be2e66
zoekt: set -indexserver_proxy for webserver (#44995)
Relates to https://github.com/sourcegraph/zoekt/pull/487

We set the new flag for local dev and server.
2022-12-02 08:38:44 +01:00
Stefan Hengl
c61b0f1a7b
all: /bin/bash -> /usr/bin/env bash (#23673)
I ran into issues setting up Sourcegraph on NixOS, because NixOS, like
some other distros, doesn't have a /bin/bash. We already use /usr/bin/env
in many of our scripts, so this improves consistency, too.
2021-08-06 12:02:43 +02:00
Keegan Carruthers-Smith
a78157d224
zoekt: default new scheduler to on (#19971)
It has been running well in production. The metrics look good, so lets
default to on.
2021-04-15 11:36:27 +02:00
Keegan Carruthers-Smith
71eb43babc
zoekt: use new scheduler in development (#19821)
This commit bumps the version of zoekt to include one new commit:
https://github.com/sourcegraph/zoekt/commit/4c31790 shards: introduce a
scheduler abstraction.

We enable this scheduler in development mode.
2021-04-08 15:30:40 +02:00
Beyang Liu
2d6b40debf
dev: set JAEGER_DISABLED=false in zoekt wrapper (#12998) 2020-08-14 08:33:57 -07:00
Keegan Carruthers-Smith
1f80aac6c6
zoekt: build updates to enable multiple branch indexing (#10549)
* gomod: update zoekt

Includes the following commits

- 9d90c1c gitindex: allocate buffer of correct size
- aa0e667 zoekt: verbose flag prints shard metadata
- ddddd93 gitindex: do not resolve HEAD ref
- 8c0aee7 build: handle nil Options in largeFilesFlag
- 36a801c indexserver: use temp directory on same mount as indexes
- 070c191 indexserver: align flag defaults with dockerfile
- 35dabc7 indexserver: optionally shallow clone and use zoekt-git-index
- f89b8e3 indexserver: inline CmdArgs into archiveIndex
- ef52f4b indexserver: consistently use a pointer to indexArgs
- e407d68 indexserver: store root in indexArgs
- 70628e0 indexserver: factor out index logic
- 4961ee9 indexserver: add cli flags to debug indexing and listing
- 4abd60f indexserver: log success
- 605d890 indexserver: metrics track if we skipped indexing
- 1a62bb8 indexserver: rename metric vars to have metric prefix
- a2233e1 indexserver: check incremental in process
- ddccdf9 indexserver: use build.Options to generate flags
- 8463ade Do not ignore large files.

* zoekt: set cpu_fraction flag for indexserver

The default was 0.25, but was bumped to 1.0. This bump was done to align
the flag defaults with how we run indexserver in cluster
environments. We update our dev and single image environments to use the
same value. Those environmemts don't have resource isolation so we need
to continue using 0.25 rather than allowing indexing to use all cores.

* all: build and include zoekt-git-index

If you are indexing multiple branches this command is required. This
adds the command to our dev and single docker image environments. The
docker images for cluster already include the command (see zoekt repo).

* gofmt
2020-05-11 14:08:38 +02:00
Geoffrey Gilmore
7970997428
dev: add shfmt for shell script consistency (#9900) 2020-04-15 12:44:36 -07:00
Keegan Carruthers-Smith
ea73532add
dev: Enable sharded search by default (#6291)
This is only for dev mode, we will follow up with enabling horizontal search
by default in docker and k8s in a later commit.
2019-10-31 15:56:36 +02:00
Keegan Carruthers-Smith
fb374a2992
dev: Set DEV_SEARCH_SHARDING for sharded search (#6225)
We update our zoekt wrapper to understand a replica number. If
DEV_SEARCH_SHARDING is set we then start up two replicas locally, each
pointing to `~/.sourcegraph/zoekt/index-$replica`.
2019-10-28 11:04:08 +02:00
Keegan Carruthers-Smith
316d3d4a5b
dev: Move zoekt scripts into own subdir (#6144) 2019-10-22 14:32:03 +02:00