Coder Social home page Coder Social logo

Comments (5)

paltanmoy avatar paltanmoy commented on July 1, 2024

@Nishanksingla Could you please explain in details about the problem you are facing actually?

from app-autoscaler-release.

Nishanksingla avatar Nishanksingla commented on July 1, 2024

I am facing multiple problems.

1.) I don't know what to put in the below parameters.

consumes:
       nats: {from: nats, deployment: cf}

I have reviewed the new manifest file format of Cloud Foundry (https://github.com/cloudfoundry/cf-deployment/blob/master/cf-deployment.yml). According to that our CF deployment does not has this.

provides:
      nats: {as: nats, shared: true}

I tried few things. Below is the one

consumes:
       nats: nil

and I got this errorError filling in template 'registrar_settings.yml.erb'

2.) Same problem with this

consumes:
      consul_common: {from: consul_common_link, deployment: cf}
      consul_server: nil
      consul_client: {from: consul_client_link, deployment: cf}

No idea what to put. Again in our CF manifest these fields are nil.

Is there a guideline that shows what changes do I have to make to run app-autoscaler in our cloud foundry environment?

When I removed both of these route_registrar and consul_agent jobs, I am not able to deploy it and I keep getting not enough IP available to reserve in manual network when clearly I have more than 100 IPs available.

from app-autoscaler-release.

qibobo avatar qibobo commented on July 1, 2024

@Nishanksingla
As your Cloud Foundry does not share its nats and consul configuration, you could get the configuration from manually and add them to the app-autoscale deployment yaml.
For "consul agent" job, the configurations should be as below, the fields with ((grab *)) should be got from your CF deployment.
jobs:

  • name: consul_agent
    release: (( grab cfreleasename ))
    consumes: {consul_client: nil, consul_server: nil, consul_common: nil}
    properties:
    consul:
    agent:
    mode: client
    domain: cf.internal
    services:
    postgres:
    check:
    tcp: 127.0.0.1:5432
    interval: 30s
    timeout: 10s
    servers:
    lan: (( grab config_from_cf_template.consul.lan_servers ))
    ca_cert: (( grab config_from_cf_template.consul.ca_cert ))
    agent_cert: (( grab config_from_cf_template.consul.agent_cert ))
    agent_key: (( grab config_from_cf_template.consul.agent_key ))
    server_cert: (( grab config_from_cf_template.consul.server_cert ))
    server_key: (( grab config_from_cf_template.consul.server_key ))
    encrypt_keys: (( grab config_from_cf_template.consul.encrypt_keys ))

And for job "route_registrar":

  • name: route_registrar
    release: routing
    consumes:
    nats:
    instances:
    - address: (( grab config_from_cf_template.nats.address ))
    properties:
    nats:
    port: (( grab config_from_cf_template.nats.port ))
    user: (( grab config_from_cf_template.nats.user))
    password: (( grab config_from_cf_template.nats.password ))
    properties:
    route_registrar:
    routes:
    - name: api_server_public_api
    registration_interval: 20s
    port: *apiServerPublicPort
    tags:
    component: api_server
    uris:
    - (( concat "autoscaler." config_from_cf_template.cf.domain ))

from app-autoscaler-release.

Nishanksingla avatar Nishanksingla commented on July 1, 2024

Thank you for the reply. I appreciate it. :)
Can you please send these configurations with proper indentation?

Thanks
Nishank

from app-autoscaler-release.

qibobo avatar qibobo commented on July 1, 2024

@Nishanksingla You can refer the file below:
https://github.com/qibobo/app-autoscaler-release/blob/dev_qy_template/templates/app-autoscaler-deployment-no-share.yml

from app-autoscaler-release.

Related Issues (20)

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.