Commit Graph

50 Commits

Author SHA1 Message Date
Daniel Sanche c4d86703c5
Add licenses (#367) 2020-07-15 11:56:37 -07:00
dependabot[bot] 82412aced6
Bump httplib2 from 0.12.0 to 0.18.0 in /src/recommendationservice (#348)
Bumps [httplib2](https://github.com/httplib2/httplib2) from 0.12.0 to 0.18.0.
- [Release notes](https://github.com/httplib2/httplib2/releases)
- [Changelog](https://github.com/httplib2/httplib2/blob/master/CHANGELOG)
- [Commits](https://github.com/httplib2/httplib2/compare/v0.12.0...v0.18.0)

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2020-06-17 16:59:49 -07:00
Daniel Sanche 1cf78ea7d8
Fix local clusters (#318) 2020-04-08 20:29:21 -07:00
dependabot[bot] f1a8e88f9b
Bump pyyaml from 3.13 to 5.1 in /src/recommendationservice (#317) 2020-04-08 17:11:55 -07:00
dependabot[bot] 21c7455f73
Bump urllib3 from 1.24.1 to 1.24.2 in /src/recommendationservice (#315) 2020-04-08 15:37:53 -07:00
Megan O'Keefe 90f9287f3a
Adds option to disable Stackdriver Export (#293) 2020-02-20 15:26:44 -05:00
Megan O'Keefe 04b2084779
[WIP] Fixes emailservice CrashLoop when Workload Identity is enabled (#280)
* Adds explicit PROJECT_ID for stackdriver exporter

* save work

* cleanup
2019-12-17 13:41:59 -05:00
Daniel Sanche 4681320f80 got rid of errors in Stackdriver Logging (#245) 2019-09-20 15:11:49 -04:00
Kalyana Chadalavada 86fb1662a3 Add Stackdriver Profiler Python agent (#176)
* Add Stackdriver Profiler Python agent to EmailService and
RecommendationService

* Update recommendation_server.py

* Moved Profiler init to a function

* Moved Profiler init to a function

* Delete key.json

* Delete key.json

* Delete key.json
2019-05-03 10:29:34 -07:00
Ahmet Alp Balkan 02b2018b0e
recommendationservice: compile deps from requirements.in (#135)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2019-01-30 00:24:07 -08:00
Chris Kleinknecht 5272a4d821 Re-enable opencensus python (#103)
Enables tracing in the email and recommendation services, which was disabled in 316db88 because of a memory leak in the stackdriver exporter.

We fixed the leak in https://github.com/googleapis/google-cloud-python/pull/6856. The fix is included in the [0.1.10 release of opencensus-python](https://github.com/census-instrumentation/opencensus-python/releases/tag/v0.1.10).

With this diff, traces show up as expected in stackdriver while running the demo on GKE. Using an `opencensus-python` package version before `0.1.10` causes the email and recommendation services to leak memory until they OOM. Memory use is back to normal (i.e. roughly constant) using the new package version.
2018-12-11 16:15:51 -08:00
davidstanke 9b055cabfb update requests package (#92) 2018-10-29 20:39:44 -07:00
Ahmet Alp Balkan 3b6d3864a0
grpc: bump health-probe to v0.2.0 (#71)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-10-09 15:54:55 -07:00
Yoshi Yamaguchi 7f40378ecc log: change log format to JSON payload for better log in Stackdriver (#66)
change the log format in Python and Node.js services.

Effected services are currencyservice, emailservice, paymentservice,
and recommendationservice. Loadgenerator is left as is because of
the diffculty to change the log format and log target in locust.

ref. #47
2018-10-05 11:23:45 -07:00
Ahmet Alp Balkan 3863f6d14d
recommendationsvc: optimize img (1.1 GB to 310 MB) (#45) 2018-09-21 15:40:25 -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 c8aed3e804
recommendationservice: add import traceback
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-30 10:48:46 -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
Ahmet Alp Balkan 316db889aa recomendationservice: disable tracing b/c memleak
enabling the tracing interceptor/sampler causes an unbounded memory leak
eventually OOMing the container.

Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 22:49:27 -07:00
Ahmet Alp Balkan ee935d48e9 recommendationservice: fully freeze pip
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 22:49:01 -07:00
Ahmet Alp Balkan 6cedeb1317 recommendationservice: use requirements.txt
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 22:48:33 -07:00
morganmclean 2713f47bbb Fixed package imports in recommendations 2018-07-17 16:21:53 -07:00
Ahmet Alp Balkan 16b1ebe95c recommendationservice: fix entrypoint
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 15:54:08 -07:00
Ahmet Alp Balkan 0a9382976f recommendationservice: use requirements.txt
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 14:59:25 -07:00
Ahmet Alp Balkan cca50463ee recommendationservice: add init message
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-17 08:39:23 -07:00
Ahmet Alp Balkan e4664c22ea refactor fix after profiler patch
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-07-16 15:17:59 -07:00
morganmclean 9486bc24fd Fixed recommendations instrumentation 2018-07-16 14:34:22 -07:00
morganmclean 6e1bbe46e2 partly fixed python 2018-07-16 14:29:14 -07:00
morganmclean 99ce1f84c2 Instrumented everything but Python 2018-07-16 14:29:14 -07:00
Ahmet Alp Balkan a3b8e2828d recommendationservice: money proto migration
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:06 -07:00
Ahmet Alp Balkan 9889e4904d recommendationservice: exclude input ids
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-29 11:08:05 -07:00
Ahmet Alp Balkan 9deb87d62f remove unused .gitkeep
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 22:35:54 -07:00
Ahmet Alp Balkan 28956fb240 unify ENTRYPOINTS in dockerfiles (no /bin/sh)
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 14:03:04 -07:00
Ahmet Alp Balkan af9db7b021 recommendationsvc: compile_proto.sh -> genproto.sh
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 11:12:17 -07:00
Ahmet Alp Balkan e5ea2154d2 recommendationservice: add requirements.txt
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 10:31:07 -07:00
Dan Sanche 017c8a91ed Merge branch 'master' of sso://user/ahmetb/microservices-demo 2018-06-21 10:27:28 -07:00
Dan Sanche 31d099b861 Merge branch 'master' of sso://user/ahmetb/microservices-demo 2018-06-21 10:26:32 -07:00
Ahmet Alp Balkan 1372aad813 recommendationservice: require PRODUCT_CATALOG_SERVICE_ADDR
Signed-off-by: Ahmet Alp Balkan <ahmetb@google.com>
2018-06-21 10:22:28 -07:00
Dan Sanche 61291a5105 regenerated protos 2018-06-20 23:53:23 -07:00
Dan Sanche 5cdc65777a regenerated protos 2018-06-20 23:40:47 -07:00
Dan Sanche 933a05205f pull ids from product catalog service 2018-06-20 23:26:32 -07:00
Dan Sanche c753f9a6ff added product catalog address env var 2018-06-20 22:37:56 -07:00
Dan Sanche 0cf418df99 recommender now returns ids instead of products 2018-06-14 16:10:11 -07:00
Dan Sanche fd6b66faeb removed pyc files 2018-06-14 15:59:59 -07:00
Dan Sanche 8375b4b1e2 added ports to script arguments 2018-06-14 15:52:41 -07:00
Dan Sanche 62153ef88e added client 2018-06-14 15:31:06 -07:00
Dan Sanche 9c6f36c605 added implementation of server 2018-06-14 12:45:44 -07:00
Dan Sanche 0844d37872 added protobuffs 2018-06-14 12:30:50 -07:00
Dan Sanche 11eed708b6 added basic Dockerfile and python script 2018-06-14 11:03:02 -07:00
Dan Sanche 671602879e added directory for recommendation service 2018-06-14 10:42:24 -07:00