diff --git a/content/posts/2020-07.md b/content/posts/2020-07.md index 57e88fa5e..6f8dd69b2 100644 --- a/content/posts/2020-07.md +++ b/content/posts/2020-07.md @@ -673,6 +673,11 @@ $ curl -s "http://localhost:8081/solr/statistics-2018/update?softCommit=true" -H - I started the statistics-2017 core and it finished in 3:44:15 - I started the statistics-2016 core and it finished in 2:27:08 - I started the statistics-2015 core and it finished in 1:07:38 + - I started the statistics-2014 core and it finished in 1:45:44 + - I started the statistics-2013 core and it finished in 1:41:50 + - I started the statistics-2012 core and it finished in 1:23:36 + - I started the statistics-2011 core and it finished in 0:39:37 + - I started the statistics-2010 core and it finished in 0:01:46 ## 2020-07-24 @@ -699,7 +704,7 @@ Mozilla/5.0 ((Windows; U; Windows NT 6.1; fr; rv:1.9.2) Gecko/20100115 Firefox/3 - 54.214.112.202 made 839,000 requests with no user agent... - It is on Amazon Web Services (AWS) and made 100% `statistics_type:view` so I guess it was harvesting via the REST API - A few IPs owned by perfectip.net made 400,000 requests in 2018-01 - - They are 2607:fa98:40:9:26b6:fdff:feff:195d and 2607:fa98:40:9:26b6:fdff:feff:1888 and 2607:fa98:40:9:26b6:fdff:feff:1c96 + - They are 2607:fa98:40:9:26b6:fdff:feff:195d and 2607:fa98:40:9:26b6:fdff:feff:1888 and 2607:fa98:40:9:26b6:fdff:feff:1c96 and 70.36.107.49 - All the requests used this user agent: ``` @@ -709,6 +714,8 @@ Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom - Then there is 213.139.53.62 in 2018, which is on Orange Telecom Jordan, so it's definitely CodeObia / ICARDA and I will purge them - Jesus, and then there are 100,000 from the ILRI harvestor on Linode on 2a01:7e00::f03c:91ff:fe0a:d645 - Jesus fuck there is 46.101.86.248 making 15,000 requests per month in 2018 with no user agent... +- Jesus fuck there is 84.38.130.177 in Latvia that was making 75,000 requests in 2018-11 and 2018-10 +- Jesus fuck there is 104.198.9.108 on Google Cloud that was making 30,000 requests with no user agent - I will purge the hits from all the following IPs: ``` @@ -727,12 +734,16 @@ Mozilla/5.0 (Windows NT 6.3; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrom 213.139.53.62 2a01:7e00::f03c:91ff:fe0a:d645 46.101.86.248 +54.214.112.202 +84.38.130.177 +104.198.9.108 +70.36.107.49 ``` - In total these accounted for the following amount of requests in each year: - 2020: 1436 - - 2019: 933148 - - 2018: 613936 + - 2019: 960274 + - 2018: 1588149 - I noticed a few other user agents that should be purged too: ``` @@ -751,7 +762,7 @@ mailto\:team@impactstory\.org ``` - I purged them from the stats too: - - 2020: 18153 + - 2020: 19553 - 2019: 29745 - 2018: 18083 - 2017: 19399 @@ -759,4 +770,58 @@ mailto\:team@impactstory\.org - 2015: 16659 - 2014: 713 +## 2020-07-26 + +- I continued with the Solr ID to UUID migrations (solr-upgrade-statistics-6x) from last week and updated my notes for each core above + - After all cores finished migrating I optimized them to delete old documents +- Export some of the CGSpace Solr stats minus the Atmire CUA schema additions for Salem to play with: + +``` +$ chrt -b 0 ./run.sh -s http://localhost:8081/solr/statistics-2019 -a export -o /tmp/statistics-2019-1.json -f 'time:[2019-01-01T00\:00\:00Z TO 2019-06-30T23\:59\:59Z]' -k uid -S author_mtdt,author_mtdt_search,iso_mtdt_search,iso_mtdt,subject_mtdt,subject_mtdt_search,containerCollection,containerCommunity,containerItem,countryCode_ngram,countryCode_search,cua_version,dateYear,dateYearMonth,geoipcountrycode,ip_ngram,ip_search,isArchived,isInternal,isWithdrawn,containerBitstream,file_id,referrer_ngram,referrer_search,userAgent_ngram,userAgent_search,version_id,complete_query,complete_query_search,filterquery,ngram_query_search,ngram_simplequery_search,simple_query,simple_query_search,range,rangeDescription,rangeDescription_ngram,rangeDescription_search,range_ngram,range_search,actingGroupId,actorMemberGroupId,bitstreamCount,solr_update_time_stamp,bitstreamId +``` + +- Run system updates on DSpace Test (linode26) and reboot it +- I looked into the umigrated Solr records more and they are overwhelmingly `type: 5` (which means "Site" according to the DSpace constants): + - statistics + - id: -1-unmigrated + - type 5: 167316 + - id: 0-unmigrated + - type 5: 32581 + - id: -1 + - type 5: 10198 + - statistics-2019 + - id: -1 + - type 5: 2690500 + - id: -1-unmigrated + - type 5: 1348202 + - id: 0-unmigrated + - type 5: 141576 + - statistics-2018 + - id: -1 + - type 5: 365466 + - id: -1-unmigrated + - type 5: 254680 + - id: 0-unmigrated + - type 5: 204854 + - 145870-unmigrated + - type 0: 83235 + - statistics-2017 + - id: -1 + - type 5: 808346 + - id: -1-unmigrated + - type 5: 598022 + - id: 0-unmigrated + - type 5: 254014 + - 145870-unmigrated + - type 0: 28168 + - bundleName THUMBNAIL: 28168 + +- There is another one appears in 2018 and 2017 at least of type 0, which would be download + - In that case the id is of a bitstream that no longer exists...? +- I started processing Solr stats with the Atmire tool now: + +``` +$ dspace dsrun com.atmire.statistics.util.update.atomic.AtomicStatisticsUpdateCLI -c statistics -f -t 12 +``` + diff --git a/docs/2020-07/index.html b/docs/2020-07/index.html index 1f6cf52ac..f478d2753 100644 --- a/docs/2020-07/index.html +++ b/docs/2020-07/index.html @@ -20,7 +20,7 @@ Since I was restarting Tomcat anyways I decided to redeploy the latest changes f - + @@ -45,9 +45,9 @@ Since I was restarting Tomcat anyways I decided to redeploy the latest changes f "@type": "BlogPosting", "headline": "July, 2020", "url": "https://alanorth.github.io/cgspace-notes/2020-07/", - "wordCount": "4728", + "wordCount": "5045", "datePublished": "2020-07-01T10:53:54+03:00", - "dateModified": "2020-07-23T12:32:11+03:00", + "dateModified": "2020-07-24T23:23:15+03:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -807,6 +807,11 @@ org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error whil
192.157.89.4
@@ -874,12 +881,16 @@ org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException: Error whil
213.139.53.62
2a01:7e00::f03c:91ff:fe0a:d645
46.101.86.248
+54.214.112.202
+84.38.130.177
+104.198.9.108
+70.36.107.49
$ chrt -b 0 ./run.sh -s http://localhost:8081/solr/statistics-2019 -a export -o /tmp/statistics-2019-1.json -f 'time:[2019-01-01T00\:00\:00Z TO 2019-06-30T23\:59\:59Z]' -k uid -S author_mtdt,author_mtdt_search,iso_mtdt_search,iso_mtdt,subject_mtdt,subject_mtdt_search,containerCollection,containerCommunity,containerItem,countryCode_ngram,countryCode_search,cua_version,dateYear,dateYearMonth,geoipcountrycode,ip_ngram,ip_search,isArchived,isInternal,isWithdrawn,containerBitstream,file_id,referrer_ngram,referrer_search,userAgent_ngram,userAgent_search,version_id,complete_query,complete_query_search,filterquery,ngram_query_search,ngram_simplequery_search,simple_query,simple_query_search,range,rangeDescription,rangeDescription_ngram,rangeDescription_search,range_ngram,range_search,actingGroupId,actorMemberGroupId,bitstreamCount,solr_update_time_stamp,bitstreamId
+
Run system updates on DSpace Test (linode26) and reboot it
+I looked into the umigrated Solr records more and they are overwhelmingly type: 5
(which means “Site” according to the DSpace constants):
There is another one appears in 2018 and 2017 at least of type 0, which would be download
+I started processing Solr stats with the Atmire tool now:
+$ dspace dsrun com.atmire.statistics.util.update.atomic.AtomicStatisticsUpdateCLI -c statistics -f -t 12
+
diff --git a/docs/categories/index.html b/docs/categories/index.html
index 8184d2b91..7976d7eb2 100644
--- a/docs/categories/index.html
+++ b/docs/categories/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/categories/notes/index.html b/docs/categories/notes/index.html
index a99b65775..58661092f 100644
--- a/docs/categories/notes/index.html
+++ b/docs/categories/notes/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/categories/notes/page/2/index.html b/docs/categories/notes/page/2/index.html
index 2f0352f84..2fc2b6dbe 100644
--- a/docs/categories/notes/page/2/index.html
+++ b/docs/categories/notes/page/2/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/categories/notes/page/3/index.html b/docs/categories/notes/page/3/index.html
index 445603365..ff3b8f2f6 100644
--- a/docs/categories/notes/page/3/index.html
+++ b/docs/categories/notes/page/3/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/categories/notes/page/4/index.html b/docs/categories/notes/page/4/index.html
index f54eabb58..a76a3b4f5 100644
--- a/docs/categories/notes/page/4/index.html
+++ b/docs/categories/notes/page/4/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/index.html b/docs/index.html
index 0ded78182..ad95abd96 100644
--- a/docs/index.html
+++ b/docs/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/page/2/index.html b/docs/page/2/index.html
index 247822ca3..e6ac1f94d 100644
--- a/docs/page/2/index.html
+++ b/docs/page/2/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/page/3/index.html b/docs/page/3/index.html
index 76ecdf611..1c837c750 100644
--- a/docs/page/3/index.html
+++ b/docs/page/3/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/page/4/index.html b/docs/page/4/index.html
index ba136b859..37fd52d8c 100644
--- a/docs/page/4/index.html
+++ b/docs/page/4/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/page/5/index.html b/docs/page/5/index.html
index c13ec33ed..740afc13c 100644
--- a/docs/page/5/index.html
+++ b/docs/page/5/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/page/6/index.html b/docs/page/6/index.html
index 80c503fd5..a3c4f13cb 100644
--- a/docs/page/6/index.html
+++ b/docs/page/6/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/posts/index.html b/docs/posts/index.html
index 0338565c0..2a03e60b4 100644
--- a/docs/posts/index.html
+++ b/docs/posts/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/posts/page/2/index.html b/docs/posts/page/2/index.html
index 25c4ac539..774988712 100644
--- a/docs/posts/page/2/index.html
+++ b/docs/posts/page/2/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/posts/page/3/index.html b/docs/posts/page/3/index.html
index ad90e92be..1583013fe 100644
--- a/docs/posts/page/3/index.html
+++ b/docs/posts/page/3/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/posts/page/4/index.html b/docs/posts/page/4/index.html
index 67d9d78c2..4b45ea602 100644
--- a/docs/posts/page/4/index.html
+++ b/docs/posts/page/4/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/posts/page/5/index.html b/docs/posts/page/5/index.html
index cba2d18f3..2c1307202 100644
--- a/docs/posts/page/5/index.html
+++ b/docs/posts/page/5/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/posts/page/6/index.html b/docs/posts/page/6/index.html
index 0b3a9367d..49489cd26 100644
--- a/docs/posts/page/6/index.html
+++ b/docs/posts/page/6/index.html
@@ -9,7 +9,7 @@
-
+
diff --git a/docs/sitemap.xml b/docs/sitemap.xml
index 40c0f5b7a..d44366bbf 100644
--- a/docs/sitemap.xml
+++ b/docs/sitemap.xml
@@ -4,27 +4,27 @@