Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Khurrum Nasim
    @knasim
    I had a question on curator - how do i ensure that my cache stays alive in my application ?
    majidvodworks
    @majidvodworks

    Hi All,
    I'm trying to use use spring cloud hystrix with spring cachable annotation, it is not working.
    following is code sample

    ```
    @Cacheable(value = "test", sync = true)
    @HystrixCommand(fallbackMethod="recoverGetValue")
    public String getValue(int id) {
        return id + "";
    }
    
    public String recoverGetValue(int id) {
        System.out.println("getting data from different resource");
        return id + "";
    }
    
    ```

    Cacheable annotation throws operationTimeoutException, but fallback method is not being called. How to solve this issue?

    Srepfler Srdan
    @schrepfler
    anyone know what are the Zuul guys doing these days? there was some buzz when they explored zuul 2.0 and wrote the article with the conclusions but there was no conclusion/release afterwards, as if it all died
    snakeyes30
    @snakeyes30
    can someone please point towards some documentation about publishing a hystrix.stream to a turbine server without using discovery?
    Jagmohan Sharma
    @JagmohanSharma
    Hi Netflix/Hystrix Team,
    I am facing issue with hystrix turbine dashboard as The request rates shown at the aggregated circuit level do not match the threadpool request rates.These should be the same or very close. Please let me know if this not expected behaviour?
    Screen Shot 2017-10-13 at 3.46.03 PM.png
    As shown in above screenshot- request rate at aggregated circuit level is not matching with request rate at thread pool level. As cluster rate at circuit level is 135/s and thread pool level is 1622.1/
    I made some changes in hystrixThreadpool.js by taking previous changes in hystrixCommand.js into consideration. Please have look on this if It is on right side. :)
    Netflix/Hystrix#1697
    Thiago Santos Joaquim
    @thiago-santos
    Hi guys!!! Everyone ok? Sorry any mistake in my english...
    So, does anyone know how I can expose a random port on dokcer to Eureka?
    Thiago Santos Joaquim
    @thiago-santos
    Hi everyone. What is the write way? i have 5 microservices and zull, hava any way to implement hystrix over zuul to protect all services or i have to implement hystrix in any microservice? in your opinion?
    Ronen
    @ronenhamias
    Hello guys wanted to ask you what do you think about SWIM and gossip protocol for microservices faliure detection and cluster membership for example:
    https://github.com/scalecube/scalecube
    Sushant Borse
    @sushant91265_twitter
    hey, has anyone integrated hystrix metrics to prometheus ?
    David J. M. Karlsen
    @davidkarlsen
    Sushant Borse
    @sushant91265_twitter
    Thanks @davidkarlsen , but unfortunately that one is not working for me...any other suggestion?
    David J. M. Karlsen
    @davidkarlsen
    how is it not working?
    Sushant Borse
    @sushant91265_twitter
    looks like the metrics I'm getting after hitting http://localhost:8888/metrics are spring-actuator-metrics(http://jsoneditoronline.org/?id=26dbc05242d6f12bba63df3f31ece107) and it is not in the prometheus required format and that is why getting error as "text format parsing error..."
    Shivam Goel
    @shivamgoel
    When will be zuul/2 available ?
    Hoswey
    @hoswey
    Hi, I want to implement the Hystrix in gateway(like zuul).
    The gateway will discover service A, B or C, assume the service A has 10 instances and 10 Api. My question is.
    What is the best practice for the command key decision? Service Name+Instance IP+Api Name, it seems this gain the best detail level, as the different api, different instance fail will not circle break the other, But it may occupy large volume of command key.
    Jagmohan Sharma
    @JagmohanSharma
    Hi Hystrix team, Can somebody from hystrix team or other help me on Netflix/Hystrix#1525 issue. I was in dicussion with @mattrjacobs in this. Can someone look into this? any help would be appreciated. Thanks.
    Yang Lifan
    @yanglifan
    In Hystrix 1.6.0, HystrixObservableCommand might remove thread-isolation. Netflix/Hystrix#1200 @jonefeewang
    FDebiesse
    @FDebiesse
    Hello. I'm using Hystrix and its circuit breaker. It seems that HTTP 404 error is considered as an error so the circuit gets opened (trapped) after multiple 404 errors. How can I tell Hystrix to consider 404 responses as a success ? (to deal with Restful architecture)
    Yang Lifan
    @yanglifan
    Why Hystrix fallback not controlled by timeout?
    Mr.CrazyIT
    @dicheng52119
    Is neccessary to save the Hystrix monitoring log information to the database?
    I really want to know there is no need, because my project needs to use it, which God can help me?
    pbagchi
    @pbagchi

    Hi, I am working on a project using Hystrix and gRPC. I have a HystrixObservableCommand class - MemberCommand and I am subscribing using Schedulers.io()

    memberCommand.toObservable().subscribeOn(Schedulers.io());

    In the construct method, I log the gRPC context but it returns null -

    protected Observable<Greeter.GreeterReply> construct() {
     logger.info("0 -- In MemberCommand, traceId from gRPC context = {}", ContextKeys.TRACE_ID_CTX_KEY.get());

    Any ideas, how I can propagate gRPC context through RxIoScheduler threads?
    For the above I get,

    0 -- In MemberCommand, traceId from gRPC context = null
    Eric Turley
    @ericjturley
    I could really use a look at this question regarding testing the hystrix fallback behavior in a Feign client:
    https://stackoverflow.com/questions/48815080/testing-hystrix-fallback-through-feign-api-com-netflix-client-clientexception
    I'm new to this, so I'm probably just missing something simple.
    Ahmed-ESIEA
    @Ahmed-ESIEA
    hello can i use failsafe with hystrix Dashboard ?
    Charlotte Williams
    @charsfamily1106
    Hi
    Shane Witbeck
    @digitalsanctum
    hi, can anyone from Netflix comment on when Sonar will be open sourced?
    pankajrepo
    @pankajrepo
    Hi I want to use zuul for api gateway. I am using spring boot 2.0 and <dependency>
    <groupId>org.springframework.cloud</groupId>
    <artifactId>spring-cloud-starter-zuul</artifactId>
    <version>1.2.3.RELEASE</version>
    </dependency>
    getting below exception [INFO] --- spring-boot-maven-plugin:2.0.0.RELEASE:start (pre-integration-test) @ api-gateway ---
    [WARNING]
    java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:496)
    at java.lang.Thread.run (Thread.java:748)
    Caused by: java.lang.NoSuchMethodError: org.springframework.boot.builder.SpringApplicationBuilder.<init>([Ljava/lang/Object;)V
    at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext (BootstrapApplicationListener.java:120)
    at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent (BootstrapApplicationListener.java:84)
    at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent (BootstrapApplicationListener.java:62)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener (SimpleApplicationEventMulticaster.java:172)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener (SimpleApplicationEventMulticaster.java:165)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent (SimpleApplicationEventMulticaster.java:139)
    at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent (SimpleApplicationEventMulticaster.java:127)
    at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared (EventPublishingRunListener.java:74)
    at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared (SpringApplicationRunListeners.java:54)
    at org.springframework.boot.SpringApplication.prepareEnvironment (SpringApplication.java:351)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:317)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:1246)
    at org.springframework.boot.SpringApplication.run (SpringApplication.java:1234)
    at com.noonwallet.api.gateway.service.ApiGatewayServiceLauncher.main (ApiGatewayServiceLauncher.java:12)
    at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke (Method.java:498)
    at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run (AbstractRunMojo.java:496)
    at java.lang.Thread.run (Thread.java:748)
    [INFO] ------------------------------------------------------------------------
    [INFO] BUILD FAILURE
    while starting the application
    anyone have any idea, what am i missing here?
    MadeInChina
    @MadeInChina
    Is anyone here who can check Netflix/ribbon#377
    Srini555
    @Srini555
    Netflix hystrix can support to Soap WS
    wuheng3803
    @wuheng3803

    java.lang.IllegalStateException: ApplicationEventMulticaster not initialized - call 'refresh' before multicasting events via the context: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@6882d8d8: startup date [Tue Jul 17 16:03:25 CST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@25139613
    at org.springframework.context.support.AbstractApplicationContext.getApplicationEventMulticaster(AbstractApplicationContext.java:414)
    at org.springframework.context.support.ApplicationListenerDetector.postProcessBeforeDestruction(ApplicationListenerDetector.java:97)
    at org.springframework.beans.factory.support.DisposableBeanAdapter.destroy(DisposableBeanAdapter.java:253)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroyBean(DefaultSingletonBeanRegistry.java:578)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingleton(DefaultSingletonBeanRegistry.java:554)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingleton(DefaultListableBeanFactory.java:961)
    at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:523)
    at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.destroySingletons(FactoryBeanRegistrySupport.java:230)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.destroySingletons(DefaultListableBeanFactory.java:968)
    at org.springframework.context.support.AbstractApplicationContext.destroyBeans(AbstractApplicationContext.java:1030)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:556)
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
    at com.tienon.TurbineApplication.main(TurbineApplication.java:16)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)

    2018-07-17 16:03:25.617 ERROR [spring-cloud-hyxtrix-turbine,,,] 9844 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed

    org.springframework.beans.factory.BeanDefinitionStoreException: Failed to process import candidates for configuration class [com.tienon.TurbineApplication]; nested exception is java.lang.IllegalStateException: Failed to introspect annotated methods on class org.springframework.cloud.netflix.turbine.stream.TurbineStreamConfiguration
    at org.springframework.context.annotation.ConfigurationClassParser.processImports(ConfigurationClassParser.java:616)
    at org.springframework.context.annotation.ConfigurationClassParser.doProcessConfigurationClass(ConfigurationClassParser.java:299)
    at org.springframework.context.annotation.ConfigurationClassParser.processConfigurationClass(ConfigurationClassParser.java:245)
    at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:198)
    at org.springframework.context.annotation.ConfigurationClassParser.parse(ConfigurationClassParser.java:167)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:308)
    at org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationC

    benyVip
    @benyVip
    The Error Message so long
    Ravattailor
    @Ravattailor
    How can I reset Only eventNotifier, instead of Hystrix.reset(), because it is resetting my micrometer publisher too
    Mate Lang
    @matelang
    Hello. Can somebody please take a look at a long pending pull request for a non-intrusive, yet important (for us at least) feature at the following PR:
    Netflix/Hystrix#1809
    vinishasharma
    @vinishasharma
    Hey!! I have wrapped my commands to access datastax under hystix. When I disconnect myself from internet, I sometimes get NoHostAvailable(Wrapped under HystrixRuntimeException) and sometimes I get HystrixTimeout with all the other configurations, even the withExecutionTimeoutInMilliseconds remaining same for both cases.
    Can anyone let me know, why i am getting these two different types of exceptions?
    Kevin
    @kevinludwig
    is there a mechanism to load hystrix configuration from a properties file (or application.yml in a boot app)? In particular I'm using the javanica contrib library.
    two things I've tried: I noticed the log entry: To enable URLs as dynamic configuration sources, define System property archaius.configurationSource.additionalUrls or make config.properties available on class path. and wondered if it would be sufficient to put hystrix properties in config.properties, that seemed to have no effect (config.properties is picked up but the timeout on the thread is not applied). I also tried ConfigurationManager.loadPropertiesFromResources("config.properties") which also seems to have no effect.
    JT Burke
    @jtburke

    I am trying to override a hystrix command timeout for a feign client from command line. I can't figure out syntax for the # and parens. I'm using spring-boot-2 and spring-cloud-netflix.

    hystrix:
      command:
        FeignClientClass#methodName(ParamsClass):
          execution:
            isolation:
              thread:
                timeoutInMilliseconds: 10000

    set HYSTRIX_COMMAND_FEIGNCLIENTCLASS#METHODNAME(PARAMSCLASS)_EXECUTION_ISOLATION_THREAD_TIMEOUTINMILLISECONDS=10000

    Has anyone got experience with this and some suggestions?

    Andrey Mizurov
    @amizurov
    Hi everyone, anybody can provide information about Hystrix release cycle and who is major maintainer ? Latest release was 1 year ago, we have a lot of issues (( and we would like to fix them.
    Litor
    @Litor
    hello everyone
    Duarte Santos
    @duartesantos
    Hello everyone,
    If I have a service that has around 10 hystrix commands, one per API method call, that might call 1000+ API servers, would it be overkilling to have a thread pool per API server?
    Srini555
    @Srini555
    Hi we are using zuul+hystrix+Ribbon implemented gateway. We have multiple microservices from those one api is facing zuul hystrix readout gateway time out 504.
    I need solution to over come above problem and we have default time out is 4seconds