Code Monkey home page Code Monkey logo

descartesresearch / teastore Goto Github PK

View Code? Open in Web Editor NEW
116.0 9.0 134.0 107.02 MB

A micro-service reference test application for model extraction, cloud management, energy efficiency, power prediction, single- and multi-tier auto-scaling

Home Page: https://se.informatik.uni-wuerzburg.de

License: Apache License 2.0

Java 95.25% CSS 0.70% JavaScript 1.47% Shell 1.81% Dockerfile 0.76%
benchmark performance microservice model-extraction

teastore's People

Contributors

actions-user avatar angi2412 avatar arunans23 avatar bmsousa avatar dagere avatar daskus1 avatar dependabot[bot] avatar drandrebauer avatar dsoko2 avatar galdorino avatar hkayabilisim avatar jo102tz avatar ngehrsitz avatar nschmittuniwue avatar odidev avatar simoneismann avatar simontrapp avatar temanisparsh avatar tim0dd avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

teastore's Issues

Warnings and Todos in the image provider

I was able to clean up the warnings across all projects, except for three warnings in the image provider.

The warnings concern some unused code in the TestRandomReplacement.java, i would rather not delete the code, in case it is still needed.

Additionally the SetupController.java contains two TODOs, either fix the TODOs or convert them to gitlab issues :-)

Login with wrong password/username

If a user logs in using a wrong username or password he should get some kind of visual feedback on what happened. Maybe a red message bar?

Image provide fails ungracefully if no persistence is found

If an image provider is started and no persistence is available it currently fails with the exception below. This is probably due to the recent changes, where a connection throws an exception if it takes too long instead of returning null.

tools.descartes.petsupplystore.registryclient.loadbalancers.LoadBalancerTimeoutException: Timout at endpoint: generatedb, with target service: tools.descartes.petsupplystore.persistence
        at tools.descartes.petsupplystore.registryclient.loadbalancers.ServiceLoadBalancer.loadBalanceRESTOperation(ServiceLoadBalancer.java:204)
        at tools.descartes.petsupplystore.registryclient.loadbalancers.ServiceLoadBalancer.loadBalanceRESTOperation(ServiceLoadBalancer.java:177)
        at tools.descartes.petsupplystore.image.setup.SetupController.waitForPersistence(SetupController.java:120)
        at tools.descartes.petsupplystore.image.setup.SetupController.fetchCategories(SetupController.java:172)
        at tools.descartes.petsupplystore.image.setup.SetupController.generateImages(SetupController.java:218)
        at tools.descartes.petsupplystore.image.setup.SetupController.startup(SetupController.java:542)
        at tools.descartes.petsupplystore.image.setup.ImageProviderStartup$1.callback(ImageProviderStartup.java:57)
        at tools.descartes.petsupplystore.registryclient.RegistryClient$1.run(RegistryClient.java:168)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:748)

Move namespace to petsupplystore

tools.descartes.petstore -> tools.descartes.petsupplystore

don't forget to change poms, Service, web.xml, Eclipse context paths, etc.

Recommender always recommends the same items

Specifically what it seems to do is the following:

  • Sort products by number of orders in descending order
  • For each number of orders (in descending order): select the first product with this order count and add to recommender output

If attached a small CSV sheet that shows the behavior and order counts for the default DB
recommenderanalysis.txt

Robustness vs NULL cookie

Currently, if the user manages to somehow get a corrupted session cookie i.e. a cookie containing null, the user gets permanently locked out. We should be a little more robust here.

Refactor Image Provider Setup

The image provider's startup could be refactored to be more easily testable. It would also help in finding errors and understanding the code base. Maybe some sort of state-machine?

Recommender Tests fail

Recommender is the last to include Persistence and Registry imports during testing. The imports are configured wrong, though. Migrating to Wiremock should fix the issue.

Use Loggers instead of Sysout

  • Configure SLF4J to a reasonable setting.
  • Initialize logger in registry client
  • Replace all Sysout/syserr with Logger calls (with useful log levels)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.