Giter VIP home page Giter VIP logo

spring-cloud-lattice's Introduction

This project is obselete and no longer maintained.

Spring Cloud Lattice

Preview of Spring Cloud Lattice implementation

Setup

Tested with lattice v0.5.0

Create redis, rabbit and mysql using the lattice docs.

mysql -h"192.168.11.11" -p"somesecret" -u"root"
CREATE DATABASE test;

Running the sample

  1. Install lattice
  2. Follow the getting started guide, including scaling lattice-app to 3
  3. run mvn --settings .settings.xml install
  4. run PROCESS_GUID=spring-cloud-lattice-sample java -jar spring-cloud-lattice-sample/target/spring-cloud-lattice-sample-1.0.0.BUILD-SNAPSHOT.jar
  5. visit http://localhost:8080?service=lattice-app verify that the 3 services rotate through as you refresh

Running the sample ON LATTICE

  1. ./mvnw clean package
  2. ltc build-droplet sc-lattice-sample java --path=spring-cloud-lattice-sample/target/spring-cloud-lattice-sample-1.0.0.BUILD-SNAPSHOT.jar
  3. ltc launch-droplet sc-lattice-sample sc-lattice-sample
  4. visit http://spring-cloud-lattice-sample.192.168.11.11.xip.io?service=sc-lattice-sample verify that the 3 services rotate through as you refresh
  5. visit http://sc-lattice-sample.192.168.11.11.xip.io/me verify that the 3 services rotate through as you refresh

IDE Discovery

if you run SampleLatticeApplication in the IDE on port 8081 you can run it on lattice with the following command

LATTICE_CLI_TIMEOUT=180 ltc create spring-cloud-lattice-sample spencergibb/spring-cloud-lattice-sample -- java -jar /spring-cloud-lattice-sample.jar --spring.cloud.lattice.discovery.routes.myservice.port=8081

Then call http://spring-cloud-lattice-sample.192.168.11.11.xip.io/call and it will hit the service running in the ide.

Config Server

TODO: document using catalyst ltc create -m 512 catalyst mstine/catalyst

spring-cloud-lattice's People

Contributors

dsyer avatar gregturn avatar markpollack avatar mbogoevici avatar spencergibb avatar

Stargazers

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

Watchers

 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

spring-cloud-lattice's Issues

Developer integration workflow

Allow a developer to run a service on the host (ie laptop) and have the services in lattice be able to hit the in IDE (or java -jared) app on the host. The host service is visible to lattice via 192.168.11.1 which is the virtualbox gateway. Not sure about other vagrant providers (vmware).

spring:
  cloud:
    lattice:
      - myService:
          host: 192.168.11.1 #could skip as this is the default
          port: 8765

Error creating bean with name 'ribbonLoadBalancer'

I get the following error when executing the sample on a local lattice runtime (based on Vagrant/VirtualBox on Mac OSX)

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

Fri Nov 27 15:36:15 UTC 2015

There was an unexpected error (type=Internal Server Error, status=500).
Error creating bean with name 'ribbonRestClient' defined in org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration: Unsatisfied dependency expressed through constructor argument with index 1 of type [com.netflix.loadbalancer.ILoadBalancer]: : Error creating bean with name 'ribbonLoadBalancer' defined in org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.loadbalancer.ILoadBalancer]: Factory method 'ribbonLoadBalancer' threw exception; nested exception is org.springframework.web.client.HttpClientErrorException: 404 Not Found; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'ribbonLoadBalancer' defined in org.springframework.cloud.netflix.ribbon.RibbonClientConfiguration: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.netflix.loadbalancer.ILoadBalancer]: Factory method 'ribbonLoadBalancer' threw exception; nested exception is org.springframework.web.client.HttpClientErrorException: 404 Not Found

Any ideas?

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.