You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`PHOTON_AGENT_DATABASE_URL`| The URL of the Photon database. |`https://download1.graphhopper.com/public/experimental/`|
105
-
|`PHOTON_AGENT_DATABASE_COUNTRY_CODE`| The country code for the Photon index data. The code can be found from [here](https://download1.graphhopper.com/public/experimental/extracts/by-country-code/). | `` (full index data) |
104
+
|`PHOTON_AGENT_DATABASE_URL`| The URL of the Photon database. |`https://download1.graphhopper.com/public/photon-db-planet-1.0-latest.tar.bz2`|
106
105
|`PHOTON_AGENT_UPDATE_STRATEGY`| The update strategy for the Photon index. Can be `sequential` or `parallel`. |`sequential`|
107
106
|`PHOTON_AGENT_DOWNLOAD_SPEED_LIMIT`| The speed limit for downloading the Photon index data. e.g. `10MB`| (no limit) |
108
107
|`PHOTON_AGENT_IO_SPEED_LIMIT`| The speed limit for storage I/O operations. e.g. `10MB`| (no limit) |
Copy file name to clipboardExpand all lines: cmd/photon-agent/main.go
+10-8Lines changed: 10 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -31,7 +31,7 @@ var (
31
31
logLevelstring
32
32
logFormatstring
33
33
databaseURLstring
34
-
databaseCountryCodestring
34
+
listenIPstring
35
35
updateStrategystring
36
36
downloadSpeedLimitBytesPerSecstring
37
37
ioSpeedLimitBytesPerSecstring
@@ -48,13 +48,13 @@ func main() {
48
48
flag.BoolVar(&disableMetrics, "disable-metrics", false, "disable photon database metrics (/metrics only provide go runtime information)")
49
49
50
50
// Photon database source options
51
-
flag.StringVar(&databaseURL, "database-url", getEnv("PHOTON_AGENT_DATABASE_URL", downloader.DefaultDatabaseURL), "URL of the Photon database to download")
52
-
flag.StringVar(&databaseCountryCode, "database-country-code", getEnv("PHOTON_AGENT_DATABASE_COUNTRY_CODE", ""), "country code of the Photon database to download. If empty, download the full database")
51
+
flag.StringVar(&databaseURL, "database-url", getEnv("PHOTON_AGENT_DATABASE_URL", photondata.DefaultDatabaseURL), "URL of the Photon database to download")
53
52
54
53
// Photon server options
55
54
flag.StringVar(&photonJarPath, "photon-jar-path", getEnv("PHOTON_AGENT_PHOTON_JAR_PATH", "/photon/photon.jar"), "path to the Photon jar file")
56
55
flag.StringVar(&photonDir, "photon-dir", getEnv("PHOTON_AGENT_PHOTON_DIR", "/photon"), "directory to store the Photon data")
57
56
flag.StringVar(&updateStrategy, "update-strategy", getEnv("PHOTON_AGENT_UPDATE_STRATEGY", string(updater.DefaultUpdateStrategy)), "update strategy for the Photon database")
57
+
flag.StringVar(&listenIP, "photon-listen-ip", getEnv("PHOTON_AGENT_PHOTON_LISTEN_IP", "127.0.0.1"), "IP address to listen on by photon")
58
58
59
59
// Speed limit options
60
60
flag.StringVar(&downloadSpeedLimitBytesPerSec, "download-speed-limit", getEnv("PHOTON_AGENT_DOWNLOAD_SPEED_LIMIT", ""), "download speed limit in bytes per second (e.g. 10MB). default is unlimited")
flag.StringVar(&databaseURL, "database-url", getEnv("PHOTON_AGENT_DATABASE_URL", downloader.DefaultDatabaseURL), "URL of the Photon database to download")
43
-
flag.StringVar(&databaseCountryCode, "database-country-code", getEnv("PHOTON_AGENT_DATABASE_COUNTRY_CODE", ""), "country code of the Photon database to download. If empty, download the full database")
41
+
flag.StringVar(&databaseURL, "database-url", getEnv("PHOTON_AGENT_DATABASE_URL", photondata.DefaultDatabaseURL), "URL of the Photon database to download")
44
42
45
43
flag.StringVar(&archivePath, "archive", getEnv("PHOTON_UPDATER_ARCHIVE", ""), "path to the local archive if you want to use it instead of downloading")
46
44
flag.StringVar(&archiveDownloadPath, "download-to", getEnv("PHOTON_UPDATER_DOWNLOAD_TO", "/tmp/photon-db.tar.bz2"), "path to download the archive. Skip downloading if md5sum matches with the existing file")
Copy file name to clipboardExpand all lines: examples/compose/README.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,8 +11,7 @@
11
11
## Steps to Deploy
12
12
13
13
> [!NOTE]
14
-
> By default, the environment variable `PHOTON_AGENT_DATABASE_COUNTRY_CODE` is set, which limits the download to data for a few countries with smaller index sizes.
15
-
> You can find country codes from [here](https://download1.graphhopper.com/public/experimental/extracts/by-country-code/).
14
+
> By default, the environment variable `PHOTON_AGENT_DATABASE_URL` is set, which limits the download to data for a few countries with smaller index sizes.
16
15
17
16
> [!WARNING]
18
17
> If you plan to use the full-size index, ensure that the volume has enough capacity to accommodate both the compressed archive and the extracted data. This requires at least 350 GiB of storage space.
0 commit comments