Skip to content

Dropwizardify - really now - #1314

Merged
karussell merged 51 commits into
masterfrom
dropwizardify2
Apr 7, 2018
Merged

karussell merged 51 commits into
masterfrom
dropwizardify2

Conversation

@michaz

@michaz michaz commented Mar 18, 2018 •

Copy link
Copy Markdown
Member
  • switch back to commit 72ef9c1
  • adapt graphhopper.sh Adapt graphhopper script for dropwizard branch #1319
  • additionally to -Dgraphhopper allow -Dgh (or only allow the latter?) no, we use the graphhopper.sh script for shorter and commonly used parameters
  • avoid double logging, see above
  • turn off admin service in config by default for security reasons
  • adapt docs to document new config options or provide a backward compatible way
  • add healthcheck to avoid warning at start up
  • use endpoint /maps instead of /webapp for UI demo
  • the graphhopper banner for CLI is not fully printed, one part of the second P is missing

michaz added 30 commits July 5, 2017 15:11
Signed-off-by: Michael Zilske <[email protected]>

# Conflicts:
#	core/src/main/java/com/graphhopper/util/CmdArgs.java
#	web/src/main/java/com/graphhopper/http/SimpleRouteSerializer.java
Signed-off-by: Michael Zilske <[email protected]>

# Conflicts:
#	config-example.properties
#	reader-gtfs/src/main/java/com/graphhopper/reader/gtfs/TripFromLabel.java
@karussell

karussell commented Mar 27, 2018 •

Copy link
Copy Markdown
Member

Fixed some more issues. The only remaining issue is "Class path contains multiple SLF4J bindings" but we can also merge first and fix later. WDYT @michaz ? Would you mind to update to master?

@karussell
karussell self-requested a review April 4, 2018 16:28
// This currently needs to happen as the last step, since we cannot add new nodes after this step.
// This means that disconnected parts of the transit network are removed as well.
// If we don't want that, we need to think of something.
new PrepareRoutingSubnetworks(graphHopperStorage, Collections.singletonList(ptFlagEncoder)).doWork();

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange, why does it revert your change @michaz although I merged master?

5064893

@karussell
karussell merged commit d6f14bc into master Apr 7, 2018
@karussell
karussell deleted the dropwizardify2 branch April 7, 2018 16:54
@karussell karussell added this to the 0.11 milestone Apr 7, 2018
@karussell
karussell restored the dropwizardify2 branch April 7, 2018 16:58
@karussell
karussell deleted the dropwizardify2 branch April 7, 2018 17:04
@karussell
karussell restored the dropwizardify2 branch April 7, 2018 17:21
@karussell karussell mentioned this pull request Apr 9, 2018
3 tasks done
@easbar

easbar commented Apr 12, 2018

Copy link
Copy Markdown
Member

I used to have different run configurations in IntelliJ were I was passing graphhopper properties as program arguments, like datareader.file etc., now I need to have these in config.yml, right ? I would at least find it useful to have some kind of naming pattern or dedicated folder in .gitignore where I can put different config.yml files if it needs to be done this way, or what is your approach for this ? For example I want to run GraphHopperApplication from the IDE for debugging with certain program arguments, but to support different settings I need multiple config.yml files ?

@michaz

michaz commented Apr 12, 2018

Copy link
Copy Markdown
Member Author

Yes, the idea is that those are your run configurations. I'd suggest git-ignoring those files locally -- we shouldn't assume a user doesn't want to commit a configuration.

@easbar

easbar commented Apr 12, 2018

Copy link
Copy Markdown
Member

Ok, but then we should remove config.yml from .gitignore ?

config.yml

@easbar

easbar commented Apr 12, 2018

Copy link
Copy Markdown
Member

hmm no nevermind, in this case it would be too likely that one accidentally pushes some custom config I guess

@michaz

michaz commented Apr 12, 2018 •

Copy link
Copy Markdown
Member Author

Ok, but then we should remove config.yml from .gitignore ?

I agree. Reason: Git is distributed -- what the user is commiting to might just as well be (and in my case often is) their own project repository where they commit their configuration to. .gitignore shouldn't be biased towards origin/master. :-)
But maybe in this case the benefits outweigh the philosophy, don't know.

@michaz

michaz commented Apr 12, 2018 •

Copy link
Copy Markdown
Member Author

Actually, I would go one step further, rename config-example.yml to config.yml, remove it from .gitignore and change it so that it actually runs when run from the project root, i.e. without the commented-out OSM filename, but with the Monaco test data.

@easbar

easbar commented Apr 12, 2018 •

Copy link
Copy Markdown
Member

I don't think I have a strong opinion here, but why not. Only thing is that it should be documented well
, maybe even a little 'migration guide' for dropwizard to make it easier to switch. I would still find it useful to have something like local/ in .gitignore. I am using .git/info/exclude where I added local/ with some folders for maps, config files etc. now

@karussell

Copy link
Copy Markdown
Member

I have it working with just one config.yml like before and e.g. the following VM options:

-Xmx4g -Xms4g -Dgraphhopper.graph.flag_encoders=car,foot -Dgraphhopper.datareader.file=berlin-latest.osm.pbf -Dgraphhopper.graph.location=graph-cache

@karussell

karussell commented Apr 12, 2018 •

Copy link
Copy Markdown
Member

Regarding the .gitignore there is also this possibility: https://stackoverflow.com/q/7335420/194609

Not sure if this applies in your case. If not, we can surely find another solution like the local/

And yes, a migration guide should be written.

@easbar

easbar commented Apr 12, 2018

Copy link
Copy Markdown
Member

Ok using the VM options works (and overwrites the settings from config.yml). The link you posted is the global version of using .git/info/exclude, so for me these are enough options to choose from :)

@michaz
michaz deleted the dropwizardify2 branch April 22, 2020 20:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants