Open sam-github opened 9 years ago
I note that the pm port defaults to 8000
in build-deploy, but to 4300
in metrics... all the PM port defaults should be the same!
Actually, they aren't really defaults ... :-( you have to type them in. How about we make them all defaults?
And actually, making host default to localhost isn't such a bad idea, either.
And the suggested values are different again in the profiler tab.
Adding a UX label.
I'm not sure how we could guess at what the user has set up.
At least now we capture the values the user uses after the first time so it is remembered for them - a bit of a wip still but better than having to manually have to type each time or try to guess
I'm not sure how we could guess at what the user has set up.
I think I should give pm a default port, so the default would become a good guess.
In the three locations in the UI that I checked, each one offered a different greyed-out port number in the PM port box (deploy, heap/cpu profile, metrics graphing). That at least should be changed, I assume its a tiny tweak. And that if the port box code becomes some kind of shared widget (maybe it did?), then all the instantiations would naturally become identical.
the amalgamation of that component into shared one is underway.
The 3 'versions' of port you are currently seeing:
the coming implementation for internal pm selected
I wasn't sure what to call it, but yes, the "placeholder values" were different in all the spots.
@chandadharap @rmg Set a default port for pm? I think it would be a good idea. We just have to choose an obscure one. Maybe 9090
? 8081
? @rmg, thoughts on a decent default, likely to work on most linux/aws/docker boxes? Maybe even 8080
, though that is commonly used for a non-standard HTTP port.
Not 8080, but uncommon one.
On Saturday, December 13, 2014, Sam Roberts notifications@github.com wrote:
I wasn't sure what to call it, but yes, the "placeholder values" were different in all the spots.
@chandadharap https://github.com/chandadharap @rmg https://github.com/rmg Set a default port for pm? I think it would be a good idea. We just have to choose an obscure one. Maybe 9090? 8081? @rmg https://github.com/rmg, thoughts on a decent default, likely to work on most linux/aws/docker boxes? Maybe even 8080, though that is commonly used for a non-standard HTTP port.
— Reply to this email directly or view it on GitHub https://github.com/strongloop/strong-arc/issues/718#issuecomment-66884658 .
Chanda Dharap Director, Engineering @StrongLoop Inc (510) 304-3924 chanda@strongloop.com
StrongLoop http://strongloop.com/* makes it easy to develop APIs http://strongloop.com/mobile-application-development/loopback/ in Node, plus get DevOps capabilities http://strongloop.com/node-js-performance/strongops/ like monitoring, debugging and clustering*.
so we are talking about a real port here where users will 'find' their internal pm instance - as opposed to a symbolic one only for 'showing' to the user?
I suggest 8701
. It is relatively low, starts with 8 like most http service ports, is unprivileged, has no common associations, and isn't an IANA reserved number. As a bonus, it is a reference to the address of our HQ. 8701
<-> 107 B
Street.
This also implies changing strong-pm
to no longer require the -l
option to specify a port, given a "sane" default.
I like it. Maybe after arc releases.. I think this missed the window!
Agreed. strong-pm@1.6.0!
do we have consensus on what this story should be?
@sam-github for comments
I think this change is trivial in both pm and arc, maybe 1 point for each of them.
not sure if this is work we actually want to do
I haven't see the latest arc UI, but if people are still punching pm ports into boxes, I think we should consider it. Its pretty easy, and removes a lot of magic numbers.
I didn't choose an slc pm default port because I couldn't think of a good choice.
But it appears the UI has chosen one for me... I suggest that the
--listen
forslc pm
become optional, and the port default to8000
(or some other number that the UI and slc pm agree on).