Comments (5)
Looking at the SwiftEnterpriseDemo. They do init of SwiftMetricsBluemix differently.
I removed the
// autoScalingService = try initializeServiceAutoscaling(cloudEnv: cloudEnv)
In Application.swift and and instead added in Metrics.swift
var bluemixMetrics : SwiftMetricsBluemix?
func initializeMetrics(app: App) {
do {
let metrics = try SwiftMetrics()
bluemixMetrics = SwiftMetricsBluemix(swiftMetricsInstance: metrics)
And auto scale dials now work. Also I had explicitly bumped packages to from 2.1.
Not sure if the packages update or the removal of the try initializeServiceAutoscaling were actually required for the fix.
from kitura-cli.
@tunniclm @nhardman Is this a problem with the way autoscaling is added in kitura create
?
from kitura-cli.
Just checked this out and there's an order of execution bug in the generated code.
The metrics get initialized after the autoscaling service and so the autoscaling service will always fail (it should log a message).
This problem was introduced into https://github.com/IBM-Swift/generator-swiftserver relatively recently when the application was refactored. Autoscaling is the only service that uses the metrics, so should be the only one affected.
@nhardman Can you take a look at this? Also, I'm not sure how this slipped through testing so we should also check why this wasn't picked up.
from kitura-cli.
@nhardman @tunniclm thanks for taking a look - can you raise an issue against https://github.com/IBM-Swift/generator-swiftserver link it here and close this issue? Thanks.
from kitura-cli.
Tracked by IBM-Swift/generator-swiftserver#432
from kitura-cli.
Related Issues (20)
- Not compatible with Swift 4? HOT 2
- Version 10 of node.js has been released HOT 1
- Kitura init generates invalid container names HOT 1
- Kitura init fails on Linux HOT 5
- Implement custom project support in Kitura CLI
- Add kitura basic and kitura api to Kitura cli
- `kitura build` does not pass options through
- `kitura kit` refers to `pod` branch HOT 1
- Kitura CLI re-write HOT 4
- Add Kitura install to cli (in Go) HOT 2
- kitura create - "ReferenceError: primordials is not defined" HOT 1
- Future enhancements for CLI HOT 1
- Update Go branch README and Release-Process docs HOT 1
- Support standard macOS pkg distribution method HOT 2
- Go unit tests failing
- Install steps are only compatible with Debian-based systems HOT 1
- Additional repos that need to be migrated that are referenced by kitura-cli HOT 1
- Remove references to IBM Cloud in generated projects HOT 1
- Error: Unknown option '--version' HOT 1
- Impossible to install CLI on Ubuntu 20.04 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kitura-cli.