Commit graph

47 commits

Author SHA1 Message Date
Ahmet Alp Balkan
2771a03727
k8s: start using grpc health check for cartservice (#63) 2018-10-01 23:20:42 -07:00
Ahmet Alp Balkan
1bab006af1
grpc: implement health check in go services (#27)
Also locked grpc-go to =1.14 exact version.
See grpc/grpc-go#2314 and grpc/grpc-go#2313 for reference
2018-09-20 10:31:31 -07:00
Ace Nassri
6c37a96f3a Add health checks to Node.js services (#26)
* Move Node healthchecks to gRPC

* gitignore proto files

* Switch to standard health RPC

* Fix lint

* Update client.js

* Add protos back + update them

* node services: fix & run genproto.sh

this gets currencyservice to work but paymentservice is still crashing
in the docker container.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>

* Fix docker breaking

* update dockerfiles with released health probe

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-09-19 12:35:22 -07:00
Ahmet Alp Balkan
360d983512
adservice: use grpc health checks (#29)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-09-19 12:35:07 -07:00
Ahmet Alp Balkan
880ee16be2
grpc: add health checks to python services (#28)
also converted line endings for recommendationservice/requirements.txt from
dos to unix.
2018-09-19 12:34:56 -07:00
Ahmet Alp Balkan
0f23d6bbf9
frontend: add simple /healthz endpoint
Decouple frontend health checks from GET /, which relies on other services to
be reachable. See #34.

Closes #34.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-09-04 22:44:05 -07:00
Ahmet Alp Balkan
b9a978e84f
k8s/adservice: bump memory limits for adservice (#33)
adservice has beeing OOMkill'ed over the weekend. it looks like the memory
goes up to ~130MiB and then gets killed.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-08-27 11:30:47 -07:00
rghetia
f35fdbcac3 Initial commit for Ads Service. (#21)
* Initial commit for Ads Service.

* update comments for AdsService and AdsServiceClient

* Refactor Ads to Ad
Move building AdService to Docker
Use default setting for Stackdriver Exporter.
Add license text.

* Revert the projectId

- also remove commented code from frontend/rpc.go

* Add adservie to skaffold.yaml

* Remove skaffold-adservice.yaml

* Replace personal projectId with demo projectId.

* Fix the crash in adservice when ran in locally.

* Ignore .skaffold*yaml file and .kubernetes-manifests-*/ dir for easy ProjectID switch.

* Fixed review comments.
1. Changed Ad redirect urls to products.
2. Removed leftovers from Dockerfile/kub*manifests*yaml
3. Added retry for StackDriver.
4. Added log for Ad request.
5. Added comment for gradle caching.
6. Added README.md to src/adservice.

* Added GRPC Health service to Ad Service
Also added
1. timeout to getAd RPC call in frontend.
2. Async thread for stackdriver init.
2018-08-22 17:02:46 -07:00
Ahmet Alp Balkan
3e90b73464
frontend: add integration for adservice
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-08-16 18:01:52 -07:00
Ahmet Alp Balkan
db40889ad0
Change gcr projectID in images
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-08-04 11:23:35 -07:00
Ahmet Alp Balkan
3493cc1cb4
Add more license headers
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-25 21:25:27 -07:00
Matthew DeLio
1bc817a013 add named port for frontend-external so that istio metrics aren't blocked 2018-07-19 09:53:28 -07:00
Ahmet Alp Balkan
2c8681d324 k8s: bump recommendationservice memory limit
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 22:49:23 -07:00
Ahmet Alp Balkan
b486251773 Revert "frontend: use LISTEN_ADDR, refactor Listen code"
This reverts commit 894c0e2a8dbcc76623c7d3ddf589e30e6b9985a9.
2018-07-16 11:01:58 -07:00
Ahmet Alp Balkan
ab2b15723c frontend: use LISTEN_ADDR, refactor Listen code
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-16 10:21:41 -07:00
Ahmet Alp Balkan
021660bb95 loadgenerator: exit faster on SIGTERM
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-15 16:34:41 -07:00
Ahmet Alp Balkan
ba5bf6d4eb loadgenerator: kill periodically to prevent lockup
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-15 11:14:35 -07:00
Ahmet Alp Balkan
5c57fc6112 add users
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-09 12:57:14 -07:00
Ahmet Alp Balkan
0be5e7b1e2 cartservice: rm initContainer, fix probe query ip
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-09 12:56:54 -07:00
Ahmet Alp Balkan
03182151ee Add gcr.io/istio-next to image names
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-07 17:14:52 -07:00
Ahmet Alp Balkan
375e2d35dd k8s: add exec probes to cartservice
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-07 17:10:52 -07:00
Ahmet Alp Balkan
5cc013952e remove trailing lines
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 13:03:37 -07:00
Ahmet Alp Balkan
3416aee7d5 k8s/cartservice: add init container to wait redis
otherwise nullpointerexception persists

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 12:41:33 -07:00
Ahmet Alp Balkan
e27dcc3883 Add README.md with installation instructions
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-02 10:24:11 -07:00
Ahmet Alp Balkan
b57cbd2c2c k8s: add termination period to loadgen to some svc
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-30 13:14:20 -07:00
Ahmet Alp Balkan
257cbdf98b loadgenerator: complete implementation
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 17:10:28 -07:00
Ahmet Alp Balkan
8c3d36d81e loadgenerator prototype
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 16:37:01 -07:00
Ahmet Alp Balkan
ab045ae6e7 currencyservice: change port to 7000
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 13:45:03 -07:00
Ahmet Alp Balkan
ca3ace3f65 frontend: use pkg/errors, show full stacktrace
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-28 22:03:39 -07:00
Ahmet Alp Balkan
7e252c7d8f k8s: add termination grace to recommendationservice
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-28 20:10:06 -07:00
Ahmet Alp Balkan
59063ff44a k8s: add terminationGracePeriodSeconds to some
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-28 18:34:48 -07:00
Ahmet Alp Balkan
1ae5e7737a frontend: add liveness/readiness probes
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-28 18:15:05 -07:00
Ahmet Alp Balkan
ecba29655a k8s: add liveness/readiness probes
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-28 17:55:51 -07:00
Ahmet Alp Balkan
92eb76c1db k8s: add frontend dockerfile + skaffold
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-28 16:53:56 -07:00
Ahmet Alp Balkan
39fd019343 k8s: fix emailservice port mapping
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-28 01:05:12 -07:00
Ahmet Alp Balkan
795fb3f80e k8s: new env vars for cartservice
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 22:49:12 -07:00
Ahmet Alp Balkan
21909b4674 k8s: cartservice listen addr
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 22:31:50 -07:00
Ahmet Alp Balkan
7c83802b9e fix cartservice listen addr
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-27 22:31:50 -07:00
Ahmet Alp Balkan
f3fe6d42ad connect cartservice
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-26 11:01:24 -07:00
Ahmet Alp Balkan
60efbc0f9e integrate currencyservice to k8s deployment
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 16:11:21 -07:00
Ahmet Alp Balkan
73a662cf83 add prototype of redis k8s deployment
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 11:43:55 -07:00
Ahmet Alp Balkan
3ae9448346 k8s: add resource limits to deployments
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 09:35:30 -07:00
Ahmet Alp Balkan
7d1d1d6614 checkoutservice: activate cartservice link
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-22 09:12:41 -07:00
Ahmet Alp Balkan
fa46e85220 currencyservicefake: temp replacement for currencysvc
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 22:34:46 -07:00
Ahmet Alp Balkan
9f1bc5a69c Integrate paymentservice to skaffold/k8s
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 14:22:09 -07:00
Ahmet Alp Balkan
25dd31952c checkoutservice: change port to 5050
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 14:07:08 -07:00
Ahmet Alp Balkan
98ac7e3a10 add kubernetes manifets and skaffold.yaml
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 14:03:04 -07:00