Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    Marcel Lanz
    @marcellanz
    Cool, enjoy :)
    Adriano Santos
    @sleipnir
    I don't know how to port Any efficiently, but we'll discuss the details in another forum of ours
    Marcel Lanz
    @marcellanz
    I agree.
    Adriano Santos
    @sleipnir
    \0/
    Marcel Lanz
    @marcellanz
    Cool @sleipnir :D
    Guy Youansi
    @ralphlaude
    @sleipnir and @marcellanz really good idea with Rust and wasm :)
    Marcel Lanz
    @marcellanz
    @ralphlaude I like Rust. I hoped that Go's WebAssembly Support would be more flexible; but that will change I think. Rust like WebAssembly where greatly pushed by Mozilla, that slowed down a bit for the last year but might accelerate again.
    2 replies
    Guy Youansi
    @ralphlaude
    :)
    otun oluwaseyi
    @otunoluwaseyi_twitter
    How do u read the event from the data store is there any example i can look at
    1 reply
    Marcel Lanz
    @marcellanz
    Hi @otunoluwaseyi_twitter, can you explain us your usecase? Cloudstate, depending on the state model, provides you with every command you handle with the current state. With the eventsourcing state model you therefore get your state as snapshots and event " automagically".
    5 replies
    Adriano Santos
    @sleipnir
    @viktorklang cloudstate machine?
    😊
    LunaYin
    @LunaYin
    Hi expert, could you please offer some detailed guide for using Postgres as storage? I tried but the sidecar container always reports a connection refused error.
    Guy Youansi
    @ralphlaude
    Hi @LunaYin could you please provide more insights for the failure?
    LunaYin
    @LunaYin
    @ralphlaude I want to try running the js-shopping cart example with Postgresql. First I deploy PostgreSQL in GKE using Statefulset. Then create the statefulstore and service. the sidecar container reports error 2021-01-20 08:30:01.054 ERROR akka.actor.OneForOneStrategy - db - Connection is not available, request timed out after 5000ms. java.sql.SQLTransientConnectionException: db - Connection is not available, request timed out after 5000ms. I guess I apply the wrong statefulstore config
    @ralphlaude this is my store : apiVersion: cloudstate.io/v1alpha1 kind: StatefulStore metadata: name: postgres spec: postgres: host: postgres-demo.default.svc.cluster.local credentials: usernameKey: demopostgresadmin passwordKey: demopostgrespwd databaseKey: demopostgresdb
    LunaYin
    @LunaYin
    more infomation: Caused by: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "cloudstate"
    Guy Youansi
    @ralphlaude
    @LunaYin, you should changed the properties here (https://github.com/cloudstateio/cloudstate/blob/master/proxy/postgres/src/main/resources/application.conf) or set those properties as ENV variables for your statefulset. You have some hints here (https://github.com/cloudstateio/cloudstate/blob/master/bin/install-postgres.sh). I hope it hepls
    helm install postgres bitnami/postgresql --version 9.1.4 --set persistence.enabled=false --set postgresqlUsername=cloudstate --set postgresqlPassword=cloudstate --set postgresqlDatabase=cloudstate
    LunaYin
    @LunaYin
    @ralphlaude this fix my problem, thanks a lot!
    1 reply
    LunaYin
    @LunaYin

    I also tried to modify my statefulset

    template:
        metadata:
          labels:
            app: postgres
        spec:
          containers:
          - name: postgres
            image: postgres:latest
            env:
              - name: POSTGRES_DATABASE
                value: postgredemo
              - name: POSTGRES_USERNAME
                value: postgredemo
              - name: POSTGRES_USERNAME
                value: postgredemo

    but the env variables are not passed into the cloudstate sidecar, it still use "cloudstate" as user name

    2 replies
    raboof
    @raboof:matrix.org
    [m]
    based on a proxy docker image, is there a way to find out what revision of the code it is running? It seems to be '0.0.0' in cloudstate-proxy-dev-mode:latest :D
    1 reply
    raboof
    @raboof:matrix.org
    [m]
    or is that image no longer the right one to use? it doesn't seem to have been updated for the last 4 months.
    @raboof:matrix.org the image is superfluous now, see link above.
    raboof
    @raboof:matrix.org
    [m]
    ah, great, thanks!
    Marcel Lanz
    @marcellanz
    your're most welcome :)
    Guy Youansi
    @ralphlaude
    @pvlugter @marcellanz @sleipnir do you about the next contributor call? thanks :)
    Peter Vlugter
    @pvlugter
    Hi @ralphlaude, I was there briefly but it's only been James and I recently.
    I can join again if you're interested in chatting.
    Guy Youansi
    @ralphlaude
    I will join thanks
    Peter Vlugter
    @pvlugter
    Cloudstate contributors, since it's difficult for people to make this time, we'll be suspending the contributor calls for now. Let's continue to discuss things asynchronously, here and on Github.
    Guy Youansi
    @ralphlaude
    @pvlugter understood and thanks for the note.
    Adriano Santos
    @sleipnir
    Hi @ralphlaude Forgive me I was not aware that the meetings had happened again since no one else has warned here. Anyway things are a little frozen in CloudState from what I understand.
    Guy Youansi
    @ralphlaude
    Hi @sleipnir no worry and I was able to clarifiy it and everything is fine. It is true and things are a bit frozen here on Cloudstate
    Marcel Lanz
    @marcellanz
    🥶 frozen, yes.
    -12°C here 🇨🇭; feels like -30°C and will probably not getting any better. Can't work when its that cold, looking for an Island 🏝 much much warmer.
    Adriano Santos
    @sleipnir
    😆😨
    Guy Youansi
    @ralphlaude
    It is really cold here :smile: also
    Adriano Santos
    @sleipnir
    @marcellanz @ralphlaude Come to Brazil. Here generally (about 300 days a year) it is very hot :D
    Marcel Lanz
    @marcellanz
    @sleipnir I've planned to visit south america by motorcycle, but at the moment the whole world being closed does not support my plans at the moment.
    Adriano Santos
    @sleipnir
    \0/
    Guy Youansi
    @ralphlaude
    Thanks for the invitation :)
    Umar Nawaz
    @umar-nawaz
    Hi Team, a noob here. I am struggling to understand and setup a very simple Stateful REST service that uses Cloudstate with Postgres or Cassandra. The goal is to build like a proof of concept Stateful application and get some simple benchmarks like latency/throughput etc.
    1. What approach should I take, either build a new application or a sample is already available?
    2. Can I deploy it all on my Mac using Kubernettes? Otherwise I could use a public cloud.
    3. Out of all samples available in github like shopping-cart/chat etc, which are all the images that I should use to build this REST service?
      I have followed some broken documentation but and successfully started a cluster of cloudstate-operator, java-shoppingcart, js-shoppingcart etc. but I am a bit lost right now with multiple issues during all the setups. So starting this thread here to look into this attractive tool from beginning. Please bear with me XD, I wish to make useful contributions to the project by the end.
    1 reply
    Slaus Blinnikov
    @SlausB

    Hello CloudState and sorry @umar-nawaz for intrusion ^^ - I have specific question regarding transactions. Current documentation states that

    there is no guarantee that the transactions either all succeeded or none

    and atomic events are

    future Cloudstate functionality

    is it still true?
    If I have an abstract payment service which issues events Bob spent 10$ to buy TeddyBear and another storage service which supposed to receive add TeddyBear to Bob's account - is there a way to currently build the CloudState solution that guarantees that there eventually will be add TeddyBear event(command?) processed per every single Bob spent 10$ event (keeping these as separate services)? Maybe some CQRS/ACID utilization I don't yet fully understand, or no way? Thanks in advance.

    Marcel Lanz
    @marcellanz

    Hi @SlausB :)
    Hi @umar-nawaz :)
    I think its only fair to respond to your question, as you try out this project, and you got no response for two weeks so far. I'm no core maintainer but let you know, that the project is a bit frozen due to current non-participation.

    The core maintainers probably should inform here about that, officially and not letting users or contributors without notice.
    (I'm myself absorbed with other work at the moment and can't help with the issue you mentioned)

    Umar Nawaz
    @umar-nawaz
    thank you @marcellanz for responding :) I have also started looking into other stateful serverless projects for now like Cloudburst. hope to continue here later this year.
    1 reply
    Trevor Conn
    @tsconn23

    Hi all -- I am attempting to set up Cloudstate in an on-prem lab. In the docs, the "Installing Cloudstate" page doesn't really have any content so I'm attempting to follow the GKE instructions as best I can, adapted for an on-prem cluster that I manage myself.

    I currently have a K8s cluster (1 master / 2 workers) provisioned and I have Cassandra running with an NFS store supporting the StatefulSet. I have run all of the subsequent YAML files to try and bring up the sample shopping cart application. However the Stateful Service is failing to initialize.

    There are two containers in the pod spec -- user-container and akka-sidecar. The former appears to be up but the akka-sidecar is failing to pass its health check and so is never marked active, thus the pod is never initialized. I will include below the error and stack trace from the akka-sidecar logs in the hope that someone might point me to a resolution.

    I do have a StatefulStore pointing to Cassandra and the shopping cart manifest is pointing to it, but I'm unsure what the error is referring to w/r/t "support event sourced journals".

    Thanks!

    2021-03-29 23:30:16.500 INFO io.cloudstate.proxy.EntityDiscoveryManager - Received EntitySpec from user function with info: ServiceInfo(js-shopping-cart,0.1.0,node v8.15.1,cloudstate,0.0.1,0,0,UnknownFieldSet(Map()))
    2021-03-29 23:30:16.503 ERROR akka.actor.OneForOneStrategy - Service [com.example.shoppingcart.ShoppingCart] has declared an event sourced entity, however, this proxy does not have a configured store, or is using a store that doesn't support event sourced journals. A store that supports journals must be configured in this stateful services resource if event sourcing is to be used.
    io.cloudstate.proxy.EntityDiscoveryException: Service [com.example.shoppingcart.ShoppingCart] has declared an event sourced entity, however, this proxy does not have a configured store, or is using a store that doesn't support event sourced journals. A store that supports journals must be configured in this stateful services resource if event sourcing is to be used.
    at io.cloudstate.proxy.EntityDiscoveryManager$$anonfun$receive$1.$anonfun$applyOrElse$1(EntityDiscoveryManager.scala:219)

    There's a secondary error below which I believe proceeds from the one above:
    2021-03-29 23:30:16.951 DEBUG io.cloudstate.proxy.HealthCheckReady - Error performing server manager readiness check
    akka.actor.ActorNotFound: Actor not found for: ActorSelection[Anchor(akka://cloudstate-proxy/), Path(/user/server-manager-supervisor/server-manager)]
    at akka.actor.ActorSelection.$anonfun$resolveOne$1(ActorSelection.scala:74)

    Adriano Santos
    @sleipnir
    @tsconn23 This seems to happen because your proxy does not have the store properly configured
    unfortunately it is a little late here in my local time so i will not be able to help you at the moment. But this question has already been posted here before, and if I'm not mistaken on github too, then I think you'll be able to find your answer.
    2 replies